## Expand description

## Re-exports§

`pub use sampling::FromRng;`

`rand`

`pub use sampling::ShapeSample;`

`rand`

## Modules§

`bool`

vector mask types.- This module contains traits and implements for working with bounding shapes
- Provides types for building cubic splines for rendering curves and use with animation easing.
`f32`

vector, quaternion and matrix types.`f64`

vector, quaternion and matrix types.`i16`

vector types.`i32`

vector types.`i64`

vector types.- The
`bevy_math`

prelude. - This module defines primitive shapes. The origin is (0, 0) for 2D primitives and (0, 0, 0) for 3D primitives, unless stated otherwise.
- sampling
`rand`

This module contains tools related to random sampling. - Traits adding swizzle methods to all vector types.
`u16`

vector types.`u32`

vector types.`u64`

vector types.

## Structs§

- A 2D affine transform, which can represent translation, rotation, scaling and shear.
- Reduced-size version of
`glam::Affine3A`

for use when storage has significant performance impact. Convert to`glam::Affine3A`

to do non-trivial calculations. - A 3D affine transform, which can represent translation, rotation, scaling and shear.
- An
`AspectRatio`

is the ratio of width to height. - A 2-dimensional
`bool`

vector mask. - A 3-dimensional
`bool`

vector mask. - A 4-dimensional
`bool`

vector mask. - A 3-dimensional SIMD vector mask.
- A 4-dimensional SIMD vector mask.
- 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 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.
- A 2-dimensional vector.
- A 3-dimensional vector.
- A 4-dimensional vector.
- A 2-dimensional vector.
- A 3-dimensional vector.
- A 4-dimensional vector.
- A rectangle defined by two opposite corners.
- A 2-dimensional vector.
- A 3-dimensional vector.
- A 4-dimensional vector.
- A 2x2 column major matrix.
- A 3x3 column major matrix.
- A 4x4 column major matrix.
- A 3x3 column major matrix.
- 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 counterclockwise 2D rotation.
- A 2-dimensional vector.
- A 3-dimensional vector.
- A 4-dimensional vector.
- A 2-dimensional vector.
- A 3-dimensional vector.
- A 4-dimensional vector.
- 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.
- A 3-dimensional vector.

## Enums§

- A compass enum with 8 directions.
- A compass enum with 4 directions.
- Euler rotation sequences.
- An error indicating that a direction is invalid.

## Traits§

- A type that supports the operations of a normed vector space; i.e. a norm operation in addition to those of
`VectorSpace`

. Specifically, the implementor must guarantee that the following relationships hold, within the limitations of floating point arithmetic: - A type that supports the mathematical operations of a real vector space, irrespective of dimension. In particular, this means that the implementing type supports:

## 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.
- Creates a 4-dimensional vector.
- 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 4-dimensional vector.
- 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 3x3 matrix from three 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.
- Creates a 4-dimensional vector.
- 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 4-dimensional vector.
- Creates a 3-dimensional vector.

## Type Aliases§

- Direction2d
Deprecated A normalized vector pointing in a direction in 2D space - Direction3d
Deprecated A normalized vector pointing in a direction in 3D space