struct

PF2d::Quad(T)

Inherits PF2d::Points < Struct < Value < Object

Represents a polygon with 4 points, in a clockwise winding starting from the upper-left

Constructors

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

Represents a polygon with 4 points, in a clockwise winding starting from the upper-left

Source

Class methods

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

Represents a polygon with 4 points, in a clockwise winding starting from the upper-left

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
-

Represents a polygon with 4 points, in a clockwise winding starting from the upper-left

Source
/(other)

Applies / to all points of this shape

Source
//(other)

Applies // to all points of this shape

Source
abs

Represents a polygon with 4 points, in a clockwise winding starting from the upper-left

Source
bounding_rect

Represents a polygon with 4 points, in a clockwise winding starting from the upper-left

Source
ceil

Represents a polygon with 4 points, in a clockwise winding starting from the upper-left

Source
centroid

Represents a polygon with 4 points, in a clockwise winding starting from the upper-left

Source
floor

Represents a polygon with 4 points, in a clockwise winding starting from the upper-left

Source
line_1
Source
line_2
Source
line_3
Source
line_4
Source
lines
Source
max_x

Represents a polygon with 4 points, in a clockwise winding starting from the upper-left

Source
max_y

Represents a polygon with 4 points, in a clockwise winding starting from the upper-left

Source
max_z

Represents a polygon with 4 points, in a clockwise winding starting from the upper-left

Source
min_x

Represents a polygon with 4 points, in a clockwise winding starting from the upper-left

Source
min_y

Represents a polygon with 4 points, in a clockwise winding starting from the upper-left

Source
min_z

Represents a polygon with 4 points, in a clockwise winding starting from the upper-left

Source
p1

Represents a polygon with 4 points, in a clockwise winding starting from the upper-left

p1=(p1 : T)

Represents a polygon with 4 points, in a clockwise winding starting from the upper-left

p2

Represents a polygon with 4 points, in a clockwise winding starting from the upper-left

p2=(p2 : T)

Represents a polygon with 4 points, in a clockwise winding starting from the upper-left

p3

Represents a polygon with 4 points, in a clockwise winding starting from the upper-left

p3=(p3 : T)

Represents a polygon with 4 points, in a clockwise winding starting from the upper-left

p4

Represents a polygon with 4 points, in a clockwise winding starting from the upper-left

p4=(p4 : T)

Represents a polygon with 4 points, in a clockwise winding starting from the upper-left

point_pointers

Represents a polygon with 4 points, in a clockwise winding starting from the upper-left

Source
points

Represents a polygon with 4 points, in a clockwise winding starting from the upper-left

Source
round(precision = 0)

Represents a polygon with 4 points, in a clockwise winding starting from the upper-left

Source
tris
Source