COMPARAISON_PRECISION
COMPARAISON_PRECISION
Precision of size comparison
Represents a triangle (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)
Triangle constructor.
\Tazorax\MathUtils\TwoD\Point2d | $pointA | A point |
\Tazorax\MathUtils\TwoD\Point2d | $pointB | B point |
\Tazorax\MathUtils\TwoD\Point2d | $pointC | C 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\Triangle
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\Triangle
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\Triangle
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\Triangle
Set C point
\Tazorax\MathUtils\TwoD\Point2d | $point |