Module bevy::math::prelude

source ·
Expand description

The bevy_math prelude.

Structs§

  • A 2-dimensional bool vector mask.
  • A 3-dimensional bool vector mask.
  • A 4-dimensional bool vector mask.
  • A polygon with a variable number of vertices, allocated on the heap in a Box<[Vec2]>.
  • A series of connected line segments in 2D space, allocated on the heap in a Box<[Vec2]>.
  • A series of connected line segments in 3D space, allocated on the heap in a Box<[Vec3]>.
  • A 2D capsule primitive, also known as a stadium or pill shape.
  • A 3D capsule primitive. A three-dimensional capsule is defined as a surface at a distance (radius) from a line
  • A circle primitive
  • A cone primitive.
  • A conical frustum primitive. A conical frustum can be created by slicing off a section of a cone.
  • A spline interpolated continuously across the nearest four control points. The curve does not pass through any of the control points.
  • A spline composed of a single cubic Bezier curve.
  • A spline interpolated continuously across the nearest four control points, with the position of the curve specified at every control point and the tangents computed automatically.
  • A spline interpolated continuously between the nearest two control points, with the position and velocity of the curve specified at both control points. This curve passes through all control points, with the specified velocity which includes direction and parametric speed.
  • A segment of a cubic curve, used to hold precomputed coefficients for fast interpolation.
  • A cuboid primitive, more commonly known as a box.
  • A cylinder primitive
  • A normalized vector pointing in a direction in 2D space
  • A normalized vector pointing in a direction in 3D space
  • An ellipse primitive
  • A rectangle defined by two opposite corners.
  • A 2-dimensional vector.
  • A 3-dimensional vector.
  • A 4-dimensional vector.
  • An infinite line along a direction in 2D space.
  • An infinite line along a direction in 3D space.
  • A 2x2 column major matrix.
  • A 3x3 column major matrix.
  • A 4x4 column major matrix.
  • An unbounded plane in 2D space. It forms a separating surface through the origin, stretching infinitely far
  • An unbounded plane in 3D space. It forms a separating surface through the origin, stretching infinitely far
  • A polygon with N vertices.
  • A series of connected line segments in 2D space.
  • A series of connected line segments in 3D space.
  • A quaternion representing an orientation.
  • An infinite half-line starting at origin and going in direction in 2D space.
  • An infinite half-line starting at origin and going in direction in 3D space.
  • A rectangle defined by two opposite corners.
  • A rectangle primitive
  • A polygon where all vertices lie on a circle, equally far apart.
  • A segment of a line along a direction in 2D space.
  • A segment of a line along a direction in 3D space.
  • A sphere primitive
  • A torus primitive, often representing a ring or donut shape
  • A triangle in 2D space
  • A rectangle defined by two opposite corners.
  • A 2-dimensional vector.
  • A 3-dimensional vector.
  • A 4-dimensional vector.
  • A 2-dimensional vector.
  • A 3-dimensional vector.
  • A 4-dimensional vector.

Enums§

Traits§