class Celestine::FPoint

Defined in:

math/point.cr

Constant Summary

OPERATIONS = [:+, :-, :/, :*]
ZERO = Celestine::FPoint.new(0.0, 0.0)

Constructors

Instance Method Summary

Constructor Detail

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

[View source]

Instance Method Detail

def *(other : Celestine::FPoint) #

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

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

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

[View source]
def to_s(io) #

[View source]
def x : Float64 #

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

[View source]
def y : Float64 #

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

[View source]