struct Geometric::Circle

Defined in:

geometric/object/circle.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(x, y, radious) #

[View source]
def self.new(center : Vec2, radious) #

[View source]
def self.scan(s, io : IO) : self #

[View source]

Instance Method Detail

def *(other : Vec2) #

[View source]
def *(other : Real) #

[View source]
def +(other : Vec2) #

[View source]
def +(other : Real) #

[View source]
def -(other : Vec2) #

[View source]
def -(other : Real) #

[View source]
def /(other : Vec2) #

[View source]
def /(other : Real) #

[View source]
def area : Real #

[View source]
def center : Vec2 #

[View source]
def center=(center : Vec2) #

[View source]
def contains?(v : Vec2) #

[View source]
def inspect(io : IO) #
Description copied from struct Struct

Appends this struct's name and instance variables names and values to the given IO.

struct Point
  def initialize(@x : Int32, @y : Int32)
  end
end

p1 = Point.new 1, 2
p1.to_s    # "Point(@x=1, @y=2)"
p1.inspect # "Point(@x=1, @y=2)"

[View source]
def radious : Real #

[View source]
def radious=(radious : Real) #

[View source]
def x(*args, **options, &) #

[View source]
def x(*args, **options) #

[View source]
def y(*args, **options, &) #

[View source]
def y(*args, **options) #

[View source]