Expand description
An opinionated 3D math library built on glam
.
re_math
is a fork of macaw
by Embark Studios.
Modules§
- prelude
- Prelude module with extension traits
Structs§
- Bounding
Box - A 3-dimensional axis-aligned bounding box.
- Conformal3
- Represents a transform with translation + rotation + uniform scale.
- IsoTransform
- An isometric transform represented by translation * rotation.
- MeshGen
- Raw mesh generator. Only generates positions, normals and an index buffer.
- Plane3
- A 3-dimensional plane primitive.
- Ray3
- A ray in 3-dimensional space: a line through space with a starting point and a direction.
Traits§
- Float
Ext - Extensions to floating-point primitives.
- QuatExt
- Extensions to
Quat
- Vec2Ext
- Extensions to
Vec2
- Vec3Ext
- Extensions to
Vec3
- Vec4Ext
- Extensions to
Vec4
Functions§
- lerp
- Linear interpolation between a range
- remap
- Remap a value from one range to another, e.g. do a linear transform.
- remap_
clamp - Remap a value from one range to another, clamps the input value to be in the from range first.