## Expand description

The `bevy_math`

prelude.

## Structs§

- A primitive shape formed by the region between two circles, also known as a ring.
- A primitive representing an arc between two points on a circle.
- 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 primitive representing a circular sector: a pie slice of a circle.
- A primitive representing a circular segment: the area enclosed by the arc of a circle and its chord (the line between its endpoints).
- 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. The associated
`CubicCurve`

has one segment between each pair of adjacent control points. - A collection of
`CubicSegment`

s chained into a single parametric curve. Has domain`[0, N)`

where`N`

is the number of attached segments. - 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.
- Non-uniform Rational B-Splines (NURBS) are a powerful generalization of the
`CubicBSpline`

which can represent a much more diverse class of curves (like perfect circles and ellipses). - A segment of a cubic curve, used to hold precomputed coefficients for fast interpolation. Can be evaluated as a parametric curve over the domain
`[0, 1)`

. - 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
- A normalized SIMD vector pointing in a direction in 3D space.
- An ellipse primitive
- A 3D shape representing an extruded 2D
`base_shape`

. - A rectangle defined by two opposite corners.
- A 2-dimensional vector.
- A 3-dimensional vector.
- A 4-dimensional vector.
- An unbounded plane in 3D space. It forms a separating surface through the origin, stretching infinitely far
- 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
- A bounded plane in 3D space. It forms a surface starting from the origin with a defined height and width.
- 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.
- A collection of
`RationalSegment`

s chained into a single parametric curve. - A segment of a rational cubic curve, used to hold precomputed coefficients for fast interpolation. Can be evaluated as a parametric curve over the domain
`[0, knot_span)`

. - 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 rhombus primitive, also known as a diamond shape.
- A counterclockwise 2D rotation in radians.
- 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 tetrahedron primitive.
- A torus primitive, often representing a ring or donut shape
- A triangle in 2D space
- A 3D triangle primitive.
- 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§

- Error during construction of
`CubicNurbs`

- Euler rotation sequences.
- The type of torus determined by the minor and major radii
- The winding order for a set of points

## Traits§

- Implement this on cubic splines that can generate a cubic curve from their spline parameters.
- A trait for getting measurements of 2D shapes
- A trait for getting measurements of 3D shapes
- A marker trait for 2D primitives
- A marker trait for 3D primitives
- Implement this on cubic splines that can generate a rational cubic curve from their spline parameters.
- Exposes methods to uniformly sample a variety of primitive shapes.