struct PF2d::Tri(T)

Defined in:

pf2d/tri.cr

Constructors

Class Method Summary

Instance Method Summary

Instance methods inherited from struct PF2d::Points(3)

initialize initialize

Constructor methods inherited from struct PF2d::Points(3)

new new

Constructor Detail

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

[View source]

Class Method Detail

def self.[](p1 : T, p2 : T, p3 : T) #

[View source]

Instance Method Detail

def %(other) #

Applies % to all points of this shape


[View source]
def &*(other) #

Applies &* to all points of this shape


[View source]
def &+(other) #

Applies &+ to all points of this shape


[View source]
def *(other) #

Applies #* to all points of this shape


[View source]
def **(other) #

Applies #** to all points of this shape


[View source]
def +(other) #

Applies #+ to all points of this shape


[View source]
def -(other) #

Applies #- to all points of this shape


[View source]
def - #

[View source]
def /(other) #

Applies #/ to all points of this shape


[View source]
def //(other) #

Applies #// to all points of this shape


[View source]
def abs #

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

[View source]
def bounding_rect #

[View source]
def ceil #

[View source]
def centroid #

[View source]
def floor #

[View source]
def lines #

[View source]
def map_points(dest : Tri, 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 max_z #

[View source]
def min_x #

[View source]
def min_y #

[View source]
def min_z #

[View source]
def p1 : T #

def p1=(p1 : T) #

def p2 : T #

def p2=(p2 : T) #

def p3 : T #

def p3=(p3 : T) #

def point_pointers #

[View source]
def points #

[View source]
def round(precision = 0) #

[View source]