struct

PF2d::Tri(T)

Inherits PF2d::Points < Struct < Value < Object

Constructors

new(p1 : T, p2 : T, p3 : T)
Source

Class methods

[](p1 : T, p2 : T, p3 : T)
Source

Instance methods

%(other)

Applies % to all points of this shape

Source
&*(other)

Applies &* to all points of this shape

Source
&+(other)

Applies &+ to all points of this shape

Source
*(other)

Applies * to all points of this shape

Source
**(other)

Applies ** to all points of this shape

Source
+(other)

Applies + to all points of this shape

Source
-(other)

Applies - to all points of this shape

Source
/(other)

Applies / to all points of this shape

Source
//(other)

Applies // to all points of this shape

Source
barycentric?(p : Vec2(Number))
Source
bounding_rect
Source
ceil
Source
centroid
Source
floor
Source
lines
Source
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

Source
max_x
Source
max_y
Source
max_z
Source
min_x
Source
min_y
Source
min_z
Source
p1
p1=(p1 : T)
p2
p2=(p2 : T)
p3
p3=(p3 : T)
point_pointers
Source
points
Source
round(precision = 0)
Source