struct PF2d::Quad(T)

Overview

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

Defined in:

pf2d/quad.cr

Constructors

Class Method Summary

Instance Method Summary

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

initialize initialize

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

new new

Constructor Detail

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

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


[View source]

Class Method Detail

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

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


[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 - #

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


[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 #

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


[View source]
def bounding_rect #

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


[View source]
def ceil #

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


[View source]
def centroid #

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


[View source]
def floor #

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


[View source]
def line_1 #

[View source]
def line_2 #

[View source]
def line_3 #

[View source]
def line_4 #

[View source]
def lines #

[View source]
def max_x #

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


[View source]
def max_y #

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


[View source]
def max_z #

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


[View source]
def min_x #

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


[View source]
def min_y #

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


[View source]
def min_z #

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


[View source]
def p1 : T #

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


def p1=(p1 : T) #

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


def p2 : T #

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


def p2=(p2 : T) #

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


def p3 : T #

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


def p3=(p3 : T) #

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


def p4 : T #

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


def p4=(p4 : T) #

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


def point_pointers #

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


[View source]
def points #

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


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

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


[View source]
def tris #

[View source]