What problem does it solve?
This Skill helps you avoid mistakes when converting coordinates, building affine transforms, and performing reliable shape hit testing and rectangle math in PixiJS.
Core Features & Use Cases
- Coordinate transforms & spaces: Convert points between local and global spaces using Container helpers like toGlobal and toLocal.
- 2D affine matrix work: Build, apply, invert, and decompose Matrix transforms for predictable movement, rotation, scaling, and layout logic.
- Shapes, bounds, and interaction testing: Use Rectangle, Circle, Ellipse, Polygon, RoundedRectangle, and Triangle methods (contains, intersects, getBounds, strokeContains) for accurate UI interaction and culling/layout calculations, including math-extras geometry and intersection helpers.
Quick Start
Use the pixijs-math skill to compute a world-space point from a child container and then verify whether it lands inside a Rectangle-shaped hit area.