Struct adi_screen::Transform[]

pub struct Transform(pub Mat4);

A transformation matrix.

Methods

impl Transform

IDENTITY: Transform = Transform(Mat4{m00: 1.0,
               m01: 0.0,
               m02: 0.0,
               m03: 0.0,
               m10: 0.0,
               m11: 1.0,
               m12: 0.0,
               m13: 0.0,
               m20: 0.0,
               m21: 0.0,
               m22: 1.0,
               m23: 0.0,
               m30: 0.0,
               m31: 0.0,
               m32: 0.0,
               m33: 1.0,})

A constant for the identity matrix.

Scale, then rotate (x: yaw, y: pitch, z: roll), then translate.

Rotate (x: yaw, y: pitch, z: roll), then translate.

Scale, then translate.

Translate.

Scale.

Rotate (x: yaw, y: pitch, z: roll).

Multiply by a custom matrix

Trait Implementations

impl Into<[f32; 16]> for Transform

Performs the conversion.

impl Clone for Transform

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Transform

Auto Trait Implementations

impl Send for Transform

impl Sync for Transform