struct PF::Line(T)

Defined in:

line.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(p1 : Vector2(T), p2 : Vector2(T)) #

[View source]

Instance Method Detail

def /(n : Float | Int) #

[View source]
def bottom #

[View source]
def contains_y?(y) #

[View source]
def inv_slope #

[View source]
def left #

[View source]
def length #

[View source]
def normal #

Find the normal axis to this line


[View source]
def normal_cc #

Normal counter clockwise


[View source]
def p1 : Vector2(T) #

[View source]
def p1=(p1 : Vector2(T)) #

[View source]
def p2 : Vector2(T) #

[View source]
def p2=(p2 : Vector2(T)) #

[View source]
def right #

[View source]
def rise #

[View source]
def run #

[View source]
def slope #

[View source]
def to_point #

[View source]
def top #

[View source]
def x_at(y) #

[View source]
def y_at(x) #

[View source]