struct PF2d::Tri(T)

Defined in:

pf2d/tri.cr

Constructors

Macro Summary

Instance Method Summary

Constructor Detail

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

[View source]

Macro Detail

macro [](*args) #

[View source]

Instance Method Detail

def %(vec : Vec2) #

Applies % to all component of this Vec with the corresponding component of other


[View source]
def *(vec : Vec2) #

Applies #* to all component of this Vec with the corresponding component of other


[View source]
def **(vec : Vec2) #

Applies #** to all component of this Vec with the corresponding component of other


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

Applies #+ to all component of this Vec with the corresponding component of other


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

Applies #- to all component of this Vec with the corresponding component of other


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

Applies #/ to all component of this Vec with the corresponding component of other


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

Applies #// to all component of this Vec with the corresponding component of other


[View source]
def barycentric?(p : Vec2(Number)) #

[View source]
def lines #

[View source]
def map_points(dest : Tri(Number), q0 : Float = 1.0, q1 : Float = 1.0, q2 : Float = 1.0, &) #

Maps points from self to dest with affine interpolation useful for sampling textures


[View source]
def max_x #

[View source]
def max_y #

[View source]
def min_x #

[View source]
def min_y #

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

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

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

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

[View source]
def p3 : Vec2(T) #

[View source]
def p3=(p3 : Vec2(T)) #

[View source]