Skip to main content

SymmetricTensor

Type Alias SymmetricTensor 

Source
pub type SymmetricTensor = SymmetricMat3;
Expand description

The symmetric tensor type used by Avian. Often used for angular inertia.

This is a type alias for f32 in 2D and SymmetricMat3 in 3D.

Aliased Type§

pub struct SymmetricTensor {
    pub m00: f32,
    pub m01: f32,
    pub m02: f32,
    pub m11: f32,
    pub m12: f32,
    pub m22: f32,
}

Fields§

§m00: f32

The first element of the first column.

§m01: f32

The second element of the first column.

§m02: f32

The third element of the first column.

§m11: f32

The second element of the second column.

§m12: f32

The third element of the second column.

§m22: f32

The third element of the third column.