SKILL5.9K installs358

Pixijs Math

Use this skill when working with coordinates, vectors, matrices, shapes, hit testing, or layout rectangles in PixiJS v8. Covers Point/ObservablePoint, Matrix (2D affine, decompose, apply, applyInverse), shapes (Rectangle, Circle, Ellipse, Polygon, RoundedRectangle, Triangle), Rectangle layout helpers (pad, fit, enlarge, ceil, scale, getBounds), strokeContains hit tests, Polygon isClockwise/containsPolygon, toGlobal/toLocal, PointData/PointLike/Size types, DEG_TO_RAD, and pixi.js/math-extras vector and intersection helpers. Triggers on: Point, ObservablePoint, Matrix, Rectangle, Circle, Polygon, Triangle, RoundedRectangle, toGlobal, toLocal, hitArea, strokeContains, pad, fit, enlarge, ceil, getBounds, containsRect, intersects, isClockwise, math-extras, lineIntersection, segmentIntersection, DEG_TO_RAD, PointData.

Type
Skill
Author
pixijs
GitHub stars
358
Installs
5.9K
Last updated
October 1, 2026

Install

npx skills add https://github.com/pixijs/pixijs-skills --skill pixijs-math

About this skill

Covers the math primitives in PixiJS v8: Point and ObservablePoint, 2D affine Matrix operations, shapes like Rectangle, Circle, Polygon, and Triangle, and hit testing with strokeContains. It also handles coordinate conversion through toGlobal and toLocal, Rectangle layout helpers such as pad, fit, and getBounds, and the pixi.js/math-extras intersection utilities. Use it when working with coordinates, vectors, matrices, or layout rectangles in a PixiJS scene.

Summary written with AI assistance from the project's public description.


Categories


More from pixijs


Similar Skills