[][src]Trait geomath::prelude::transforms::Rotation3

pub trait Rotation3 where
    Self: Sized + Copy + Clone + Initializer
{ fn set_rotation(&mut self, angle: f64, axis: &Vector3) -> &mut Self;
fn set_rotation_x(&mut self, angle: f64) -> &mut Self;
fn set_rotation_y(&mut self, angle: f64) -> &mut Self;
fn set_rotation_z(&mut self, angle: f64) -> &mut Self; fn from_rotation(angle: f64, axis: &Vector3) -> Self { ... }
fn from_rotation_x(angle: f64) -> Self { ... }
fn from_rotation_y(angle: f64) -> Self { ... }
fn from_rotation_z(angle: f64) -> Self { ... } }

3D rotations matrix

Required methods

fn set_rotation(&mut self, angle: f64, axis: &Vector3) -> &mut Self

Set a rotation matrix from axis and angle

fn set_rotation_x(&mut self, angle: f64) -> &mut Self

Set a rotation matrix around x-axis from given angle

fn set_rotation_y(&mut self, angle: f64) -> &mut Self

Set a rotation matrix around y-axis from given angle

fn set_rotation_z(&mut self, angle: f64) -> &mut Self

Set a rotation matrix around z-axis from given angle

Loading content...

Provided methods

fn from_rotation(angle: f64, axis: &Vector3) -> Self

Get a rotation matrix from axis and angle

fn from_rotation_x(angle: f64) -> Self

Get a rotation matrix around x-axis from given angle

fn from_rotation_y(angle: f64) -> Self

Get a rotation matrix around y-axis from given angle

fn from_rotation_z(angle: f64) -> Self

Get a rotation matrix around z-axis from given angle

Loading content...

Implementors

impl Rotation3 for Matrix3[src]

impl Rotation3 for Vector3[src]

Loading content...