class Crystalg::Geometry::Point(T)

Included Modules

Defined in:

crystalg/geometry/point.cr

Constructors

Instance Method Summary

Constructor Detail

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

[View source]

Instance Method Detail

def *(other) #

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

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

[View source]
def /(other) #

[View source]
def <=>(other) #

[View source]
def ==(other) #
Description copied from class Reference

Returns false (other can only be a Value here).


[View source]
def arg #

[View source]
def cross(other) #

[View source]
def distance(other) #

[View source]
def dot(other) #

[View source]
def norm #

[View source]
def rotate(radian, pivot = Point.new(0, 0)) #

[View source]
def x : T #

[View source]
def y : T #

[View source]