This is the Math::Rect class.
Represents a rectangle.
$rect = Rect($x: Num, $y: Num, $width: Num, $height: Num)
Creates a rectangle, given its origin (bottom-left vertex) and dimensions.
-
x: Num - X-coordinate of the rectangle's origin.
-
y: Num - Y-coordinate of the rectangle's origin.
-
width: Num - Width of the rectangle.
-
height: Num - Height of the rectangle.
$rect.vertices
Computed property. A list of the four vertices of the rectangle.
$rect.bottomLeft
Computed property. Bottom left vertex of the rectangle.
$rect.bottomRight
Computed property. Bottom right vertex of the rectangle.
$rect.topLeft
Computed property. Top left vertex of the rectangle.
$rect.topRight
Computed property. Top right vertex of the rectangle.
$rect.bottom
Computed property. Line segment formed by the bottom vertices of the rectangle.
$rect.top
Computed property. Line segment formed by the top vertices of the rectangle.
$rect.center
Computed property. Center point of the rectangle.
End of the Math::Rect class.
This file was generated automatically by the Ferret compiler from Rect.frt.