Expand description
§game-gem Math
A comprehensive 2D/3D math library built on glam with game-specific extensions.
Re-exports all necessary glam types and adds:
Modules§
- consts
- Common constants.
Structs§
- Angle
- A type-safe angle that stores radians internally but provides construction and conversion in both radians and degrees.
- Mat4
- A 4x4 column major matrix.
- Quat
- A quaternion representing an orientation.
- Rect
- An axis-aligned rectangle defined by its top-left corner, width, and height.
- Transform
- A 2D transform representing position, rotation, and scale.
- Vec2
- A 2-dimensional vector.
- Vec3
- A 3-dimensional vector.
- Vec4
- A 4-dimensional vector.
Traits§
- Float
Ext - Extension trait for
f32with game-oriented helpers. - Lerp
- Types that can be linearly interpolated.
- Vec2Ext
- Extension trait for
Vec2with game-oriented helpers.