> For the complete documentation index, see [llms.txt](https://scripting.breeze.rip/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://scripting.breeze.rip/newgen/api/namespaces/math.md).

# math

Math helpers for angles and positions. Rotations follow Minecraft: yaw 0 faces +Z, pitch is positive downwards.

### Functions

* [angleDistance](/newgen/api/functions/math.angledistance.md)
* [clamp](/newgen/api/functions/math.clamp.md)
* [directionFromRotation](/newgen/api/functions/math.directionfromrotation.md)
* [lerp](/newgen/api/functions/math.lerp.md)
* [pitchTo](/newgen/api/functions/math.pitchto.md)
* [wrapDegrees](/newgen/api/functions/math.wrapdegrees.md)
* [yawTo](/newgen/api/functions/math.yawto.md)
