Trait nalgebra::RotationWithTranslation [] [src]

pub trait RotationWithTranslation<LV: Neg<Output=LV> + Copy, AV>: Rotation<AV> + Translation<LV> + Sized {
    fn append_rotation_wrt_point(&self, amount: &AV, center: &LV) -> Self { ... }
    fn append_rotation_wrt_point_mut(&mut self, amount: &AV, center: &LV) { ... }
    fn append_rotation_wrt_center(&self, amount: &AV) -> Self { ... }
    fn append_rotation_wrt_center_mut(&mut self, amount: &AV) { ... }
}

Various composition of rotation and translation.

Utilities to make rotations with regard to a point different than the origin. All those operations are the composition of rotations and translations.

Those operations are automatically implemented in term of the Rotation and Translation traits.

Provided Methods

Applies a rotation centered on a specific point.

Arguments

  • t - the object to be rotated.
  • amount - the rotation to apply.
  • point - the center of rotation.

Rotates self using a specific center of rotation.

The rotation is applied in-place.

Arguments

  • amount - the rotation to be applied
  • center - the new center of rotation

Applies a rotation centered on the translation of m.

Arguments

  • t - the object to be rotated.
  • amount - the rotation to apply.

Applies a rotation centered on the translation of m.

The rotation os applied on-place.

Arguments

  • amount - the rotation to apply.

Implementors