pub struct Transform { /* private fields */ }
Implementations
sourceimpl 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
sourceimpl 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
sourceimpl 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
sourceimpl Transformable for Transform
impl Transformable for Transform
impl Copy for Transform
impl StructuralPartialEq for Transform
Auto Trait Implementations
impl RefUnwindSafe for Transform
impl Send for Transform
impl Sync for Transform
impl Unpin for Transform
impl UnwindSafe for Transform
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more