While continuing my experiments with Pixi JS
, I've bumped into the maths
folder classes (Circle
, Ellipse
, RoundedRectangle
, etc.). From the provided example, I see that they can be used for some testing.
// test if a point is inside a circle
const isPointInCircle = new Circle(0, 0, 10).contains(0, 0); // true
However, the documentation for Ellipse
says that the Ellipse object is used to help draw graphics…
. Upon further searching, I see that for the simple shapes, the Graphics
class is used. But I cannot figure out whether it's possible to use the classes from the maths
folder for drawing the objects.
Question: Is it possible to use those classes for drawing the shapes?