geometry-and-math

Provide geometry and math utilities for Phaser 4 game development.

Updated Mar 13, 2026
One-click install
npx skills add https://github.com/Dominik-Steinweg/Fragdachse --skill geometry-and-math-dominik-steinweg
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: geometry-and-math
Source: https://github.com/Dominik-Steinweg/Fragdachse/tree/main/.agents/skills/geometry-and-math
Command: npx skills add https://github.com/Dominik-Steinweg/Fragdachse --skill geometry-and-math-dominik-steinweg

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill provides a comprehensive toolkit for handling 2D and 3D mathematical operations, geometry calculations, and intersection tests, removing the need to manually implement complex spatial logic.

Core Features & Use Cases

  • Geometry Management: Create and manipulate shapes like circles, rectangles, and polygons for collision detection and spatial reasoning.
  • Math Utilities: Perform advanced calculations including interpolation, easing, angular math, and seeded random number generation.
  • Use Case: Use this skill to calculate the precise intersection point between a player's line-of-sight ray and a polygon-based wall, or to smoothly interpolate an object's position using easing functions.

Quick Start

Use the geometry-and-math skill to calculate the intersection point between a line segment and a rectangle.

Frequently Asked Questions about geometry-and-math

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I calculate intersection points between a line segment and a rectangle in Phaser?

You can calculate intersection points in Phaser using geometry utilities that test shape primitives like lines and rectangles, returning precise spatial coordinates for collision detection workflows.

What's the best way to handle vector math and matrix transformations for game development?

Handling vector math and matrix transformations is best done using a comprehensive math utility suite that supports high-performance spatial calculations and procedural generation within game development workflows.

How do I generate deterministic random numbers for procedural generation tasks?

Deterministic random numbers for procedural generation are generated using seeded random number generation math utilities, ensuring reproducible spatial calculations and game level layouts across multiple runs.

Does this math and geometry toolkit support 3D spatial calculations?

Yes, the math and geometry toolkit supports both 2D and 3D mathematical operations, allowing you to perform spatial calculations, intersection tests, and matrix transformations across multiple dimensions.

Can I use easing functions to smoothly interpolate an object's position?

Yes, you can use interpolation and easing math utilities to smoothly interpolate an object's position, removing the need to manually implement complex spatial logic for movement animations.