class Celestine::Point

Defined in:

math/point.cr

Constant Summary

OPERATIONS = [:+, :-, :/, :*, :**, :&, :|, :^, :<<, :>>, :%]
ZERO = Celestine::Point.new(0, 0)

Constructors

Instance Method Summary

Constructor Detail

def self.new(x : Int32, y : Int32) #

[View source]

Instance Method Detail

def %(other : Celestine::Point) #

[View source]
def &(other : Celestine::Point) #

[View source]
def *(other : Celestine::Point) #

[View source]
def **(other : Celestine::Point) #

[View source]
def +(other : Celestine::Point) #

[View source]
def -(other : Celestine::Point) #

[View source]
def /(other : Celestine::Point) #

[View source]
def <<(other : Celestine::Point) #

[View source]
def >>(other : Celestine::Point) #

[View source]
def ^(other : Celestine::Point) #

[View source]
def |(other : Celestine::Point) #

[View source]
def to_s(io) #

[View source]
def x : Int32 #

[View source]
def x=(x : Int32) #

[View source]
def y : Int32 #

[View source]
def y=(y : Int32) #

[View source]