admin 管理员组

文章数量: 1184232

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?

本文标签:

Error[2]: Invalid argument supplied for foreach(), File: /www/wwwroot/roclinux.cn/tmp/view_template_quzhiwa_htm_read.htm, Line: 58
File: /www/wwwroot/roclinux.cn/tmp/route_read.php, Line: 205, include(/www/wwwroot/roclinux.cn/tmp/view_template_quzhiwa_htm_read.htm)
File: /www/wwwroot/roclinux.cn/tmp/index.inc.php, Line: 129, include(/www/wwwroot/roclinux.cn/tmp/route_read.php)
File: /www/wwwroot/roclinux.cn/index.php, Line: 29, include(/www/wwwroot/roclinux.cn/tmp/index.inc.php)