PF2d::Tri(T)
Inherits PF2d::Points < Struct < Value < Object
Constructors
new(p1 : T, p2 : T, p3 : T)
SourceClass methods
[](p1 : T, p2 : T, p3 : T)
SourceInstance methods
abs
Sourcebarycentric?(p : Vec2(Number))
Sourcebounding_rect
Sourceceil
Sourcecentroid
Sourcefloor
Sourcelines
Sourcemap_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
max_x
Sourcemax_y
Sourcemax_z
Sourcemin_x
Sourcemin_y
Sourcemin_z
Sourcep1
p1=(p1 : T)
p2
p2=(p2 : T)
p3
p3=(p3 : T)
point_pointers
Sourcepoints
Sourceround(precision = 0)
Source