
Description
pixijs-math is an agent skill from the PixiJS skills collection, listed on skills.sh. It covers the math primitives PixiJS v8 uses for transforms, hit testing and coordinate conversion: Point and ObservablePoint, Matrix, the shape classes, and layout rectangles. When a task involves coordinates, vectors, matrices, shapes or hit tests, the agent follows the skill to pick the right type and convert between local and global space. The skill explains that importing pixi.js/math-extras adds vector operations such as add, dot product, magnitude and reflect, plus Rectangle intersection and union helpers. Its quick start shows a child container placed inside a scaled parent and converted to global coordinates with toGlobal. It suits developers writing 2D games, interactive tools or layout code in PixiJS, who want an agent that gets the coordinate maths right. A skill is a SKILL.md file of instructions that an AI agent loads only when a task calls for it. It is free and open source on GitHub.…
Highlights
- Point, ObservablePoint and Matrix types
- Local to global coordinate conversion
- Vector helpers from pixi.js/math-extras
- Rectangle intersection and union
Ratings & Reviews
No ratings yet
Be the first to rate pixijs-math.
People also visit
pixijs-math FAQ
What does the pixijs-math skill cover?
Coordinates, vectors, matrices, shapes, hit testing and layout rectangles in PixiJS v8.
How do I install it?
Run: npx skills add https://github.com/pixijs/pixijs-skills --skill pixijs-math.
Is it free?
Yes. The skill is free and open source.
How do I get vector operations?
Import pixi.js/math-extras. The skill says this adds vector operations such as add, dot, magnitude and reflect, and Rectangle intersection and union helpers.
How do I convert a child's position to screen space?
Use the container's toGlobal method with a Point. The skill's example converts the origin of a child that sits inside a scaled and moved parent.
What is an agent skill?
A SKILL.md file of instructions that an AI agent such as Claude Code loads when a task calls for it, so it follows the same steps each time.
What are the best pixijs-math alternatives?
Popular alternatives to pixijs-math include pixijs, pixijs-scene-graphics and pixijs-2d. See all pixijs-math alternatives

