最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

pixi.js - Is it Possible to Use Pixi JS maths Classes (Circle, Ellipse, RoundedRectangle, etc.) to Draw Shapes? - Stack Overflow

programmeradmin1浏览0评论

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?

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论