COMPARAISON_PRECISION
COMPARAISON_PRECISION
Precision of size comparison
Represents a rectangle (geometric form)
$_points : array<mixed,\Tazorax\MathUtils\TwoD\Point2d>
__construct(\Tazorax\MathUtils\TwoD\Point2d $pointA, \Tazorax\MathUtils\TwoD\Point2d $pointB, \Tazorax\MathUtils\TwoD\Point2d $pointC, \Tazorax\MathUtils\TwoD\Point2d $pointD)
Rectangle constructor.
\Tazorax\MathUtils\TwoD\Point2d | $pointA | A point |
\Tazorax\MathUtils\TwoD\Point2d | $pointB | B point |
\Tazorax\MathUtils\TwoD\Point2d | $pointC | C point |
\Tazorax\MathUtils\TwoD\Point2d | $pointD | D point |
addPoint(\Tazorax\MathUtils\TwoD\Point2d $point) : \Tazorax\MathUtils\TwoD\Polygon
Add point
\Tazorax\MathUtils\TwoD\Point2d | $point |
getPoint(integer $index) : \Tazorax\MathUtils\TwoD\Point2d
Get point at index
integer | $index |
setPoint(integer $index, \Tazorax\MathUtils\TwoD\Point2d $point) : \Tazorax\MathUtils\TwoD\Rectangle
Add or set a point for the given index
integer | $index | |
\Tazorax\MathUtils\TwoD\Point2d | $point |
translate(\Tazorax\MathUtils\TwoD\Vector2d $vector) : \Tazorax\MathUtils\TwoD\Polygon
Apply a vector on each point and return a new instance of Polygon
\Tazorax\MathUtils\TwoD\Vector2d | $vector |
getPointA() : \Tazorax\MathUtils\TwoD\Point2d
Get A point
setPointA(\Tazorax\MathUtils\TwoD\Point2d $point) : \Tazorax\MathUtils\TwoD\Rectangle
Set A point
\Tazorax\MathUtils\TwoD\Point2d | $point |
getPointB() : \Tazorax\MathUtils\TwoD\Point2d
Get B point
setPointB(\Tazorax\MathUtils\TwoD\Point2d $point) : \Tazorax\MathUtils\TwoD\Rectangle
Set B point
\Tazorax\MathUtils\TwoD\Point2d | $point |
getPointC() : \Tazorax\MathUtils\TwoD\Point2d
Get C point
setPointC(\Tazorax\MathUtils\TwoD\Point2d $point) : \Tazorax\MathUtils\TwoD\Rectangle
Set C point
\Tazorax\MathUtils\TwoD\Point2d | $point |
getPointD() : \Tazorax\MathUtils\TwoD\Point2d
Get D point
setPointD(\Tazorax\MathUtils\TwoD\Point2d $point) : \Tazorax\MathUtils\TwoD\Rectangle
Set D point
\Tazorax\MathUtils\TwoD\Point2d | $point |