Struct adi_gpu_base::Transform [−][src]
pub struct Transform(pub Mat4);
A transformation matrix.
Methods
impl Transform
[src]
impl Transform
pub const IDENTITY: 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.
pub fn srt(self, scale: Vec3, rotate: Vec3, translate: Vec3) -> Self
[src]
pub fn srt(self, scale: Vec3, rotate: Vec3, translate: Vec3) -> Self
Scale, then rotate (x: yaw, y: pitch, z: roll), then translate.
pub fn rt(self, rotate: Vec3, translate: Vec3) -> Transform
[src]
pub fn rt(self, rotate: Vec3, translate: Vec3) -> Transform
Rotate (x: yaw, y: pitch, z: roll), then translate.
pub fn st(self, scale: Vec3, translate: Vec3) -> Transform
[src]
pub fn st(self, scale: Vec3, translate: Vec3) -> Transform
Scale, then translate.
pub fn t(self, translate: Vec3) -> Transform
[src]
pub fn t(self, translate: Vec3) -> Transform
Translate.
pub fn s(self, scale: Vec3) -> Transform
[src]
pub fn s(self, scale: Vec3) -> Transform
Scale.
pub fn r(self, rotate: Vec3) -> Transform
[src]
pub fn r(self, rotate: Vec3) -> Transform
Rotate (x: yaw, y: pitch, z: roll).
pub fn m(self, matrix: Mat4) -> Transform
[src]
pub fn m(self, matrix: Mat4) -> Transform
Multiply by a custom matrix
Trait Implementations
impl Copy for Transform
[src]
impl Copy for Transform
impl Clone for Transform
[src]
impl Clone for Transform
fn clone(&self) -> Transform
[src]
fn clone(&self) -> Transform
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Into<[f32; 16]> for Transform
[src]
impl Into<[f32; 16]> for Transform