Crate macaw

source ·
Expand description

A friendly opinionated game math library built on top the excellent lower-level glam.

Modules§

  • Prelude module with extension traits

Structs§

  • A 3D affine transform, which can represent translation, rotation, scaling and shear.
  • A 3-dimensional axis-aligned bounding box
  • A compressed sRGBA color, 8-bit per component, 32-bit total.
  • Represents a transform with translation + rotation + uniform scale. Preserves local angles. Scale and rotation will be applied first, then translation.
  • A 2D affine transform, which can represent translation, rotation, scaling and shear.
  • A 3D affine transform, which can represent translation, rotation, scaling and shear.
  • A 2x2 column major matrix.
  • A 3x3 column major matrix.
  • A 4x4 column major matrix.
  • A quaternion representing an orientation.
  • A 2-dimensional vector.
  • A 3-dimensional vector.
  • A 4-dimensional vector.
  • A 2-dimensional vector.
  • A 3-dimensional vector.
  • A 4-dimensional vector.
  • An isometric transform represented by translation * rotation.
  • A 2x2 column major matrix.
  • A 3x3 column major matrix.
  • A 3x3 column major matrix.
  • A 4x4 column major matrix.
  • Raw mesh generator. Only generates positions, normals and an index buffer.
  • A 3-dimensional plane primitive.
  • A quaternion representing an orientation.
  • A ray in 3-dimensional space: a line through space with a starting point and a direction.
  • A 2-dimensional vector.
  • A 3-dimensional vector.
  • A 4-dimensional vector.
  • A 2-dimensional vector.
  • A 3-dimensional vector.
  • A 3-dimensional vector.
  • A 4-dimensional vector.

Enums§

Traits§

Functions§

  • Creates a 2x2 matrix from two column vectors.
  • Creates a 3x3 matrix from three column vectors.
  • Creates a 4x4 matrix from four column vectors.
  • Creates a quaternion from x, y, z and w values.
  • Creates a 2-dimensional vector.
  • Creates a 3-dimensional vector.
  • Creates a 4-dimensional vector.
  • Creates a 2-dimensional vector.
  • Creates a 3-dimensional vector.
  • Linear interpolation between a range
  • Creates a 2x2 matrix from two column vectors.
  • Creates a 3x3 matrix from three column vectors.
  • Creates a 3x3 matrix from three column vectors.
  • Creates a 4x4 matrix from four column vectors.
  • Creates a quaternion from x, y, z and w values.
  • Remap a value from one range to another, e.g. do a linear transform.
  • Remap a value from one range to another, clamps the input value to be in the from range first.
  • Creates a 2-dimensional vector.
  • Creates a 3-dimensional vector.
  • Creates a 4-dimensional vector.
  • Creates a 2-dimensional vector.
  • Creates a 3-dimensional vector.
  • Creates a 3-dimensional vector.
  • Creates a 4-dimensional vector.