pub struct Transform { /* private fields */ }
Implementations§
Source§impl Transform
impl Transform
pub fn from_translation(translate: Vec3d) -> Self
pub fn from_rotation_x(angle: f64) -> Self
pub fn from_rotation_y(angle: f64) -> Self
pub fn from_rotation_z(angle: f64) -> Self
pub fn from_rotation_axis(axis: Vec3d, angle: f64) -> Self
pub fn from_scale(scale: Vec3d) -> Self
Source§impl Transform
impl Transform
pub fn translate(&self, translate: Vec3d) -> Self
pub fn rotate_x(&self, angle: f64) -> Self
pub fn rotate_y(&self, angle: f64) -> Self
pub fn rotate_z(&self, angle: f64) -> Self
pub fn rotate_axis(&self, axis: Vec3d, angle: f64) -> Self
pub fn scale(&self, scale: Vec3d) -> Self
Source§impl Transform
impl Transform
pub fn transform_homogeneous_coord(&self, coord: Vec4d) -> Vec4d
pub fn transform_point3f(&self, point: Vec3f) -> Vec3f
pub fn transform_vector3f(&self, vector: Vec3f) -> Vec3f
pub fn transform_normal3f(&self, normal: Vec3f) -> Vec3f
pub fn transform_point3d(&self, point: Vec3d) -> Vec3d
pub fn transform_vector3d(&self, vector: Vec3d) -> Vec3d
pub fn transform_normal3d(&self, normal: Vec3d) -> Vec3d
pub fn transform<T: Transformable>(&self, object: T) -> T
Trait Implementations§
Source§impl Transformable for Transform
impl Transformable for Transform
impl Copy for Transform
impl StructuralPartialEq for Transform
Auto Trait Implementations§
impl Freeze for Transform
impl RefUnwindSafe for Transform
impl Send for Transform
impl Sync for Transform
impl Unpin for Transform
impl UnwindSafe for Transform
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more