pub struct Euler<T>(pub T, pub T, pub T);
Expand description
Rotations around the x y and z axes in radians radian = value/PI do not include PI
Tuple Fields§
§0: T
§1: T
§2: T
Implementations§
Trait Implementations§
Source§impl<T: F32Fmt> F32Fmt for Euler<T>
impl<T: F32Fmt> F32Fmt for Euler<T>
type F32Fmt = Euler<<T as F32Fmt>::F32Fmt>
fn intoF32Fmt(self) -> Self::F32Fmt
fn fromF32Fmt(f32_fmt: Self::F32Fmt) -> Self
fn sqrt(self) -> Self
fn cbrt(self) -> Self
fn f32_const_mul(self, constant: f32) -> Self
fn sin_mul(self, _mul_by: Self) -> Self
fn cos_mul(self, _mul_by: Self) -> Self
fn tan_mul(self, _mul_by: Self) -> Self
fn asin_mul(self, _mul_by: Self) -> Self
fn acos_mul(self, _mul_by: Self) -> Self
fn atan_mul(self, _mul_by: Self) -> Self
fn atan2_mul(self, _other: Self, _mul_by: Self) -> Self
fn sinh_mul(self, _mul_by: Self) -> Self
fn cosh_mul(self, _mul_by: Self) -> Self
fn tanh_mul(self, _mul_by: Self) -> Self
Source§impl<T> From<Euler<T>> for Quaternion<T>
impl<T> From<Euler<T>> for Quaternion<T>
Source§impl<T> From<Quaternion<T>> for Euler<T>
impl<T> From<Quaternion<T>> for Euler<T>
Source§fn from(q: Quaternion<T>) -> Self
fn from(q: Quaternion<T>) -> Self
Converts to this type from the input type.
Source§impl<T> Rotation<T> for Euler<T>where
T: Construct<T>,
impl<T> Rotation<T> for Euler<T>where
T: Construct<T>,
Source§fn look_at_xy(_pos: Vector3<T>, _look_at: Vector3<T>) -> Self
fn look_at_xy(_pos: Vector3<T>, _look_at: Vector3<T>) -> Self
Generate a rotation for an object at a position look at a point.
only uses the X and Y rotation axes to arrive at this result
Z rotation axis Read more
Source§fn look_at_xz(_pos: Vector3<T>, _look_at: Vector3<T>) -> Self
fn look_at_xz(_pos: Vector3<T>, _look_at: Vector3<T>) -> Self
Generate a rotation for an object at a position look at a point.
only uses the X and Z rotation axes to arrive at this result
Z rotation axis Read more
Source§fn look_at_yz(_pos: Vector3<T>, _look_at: Vector3<T>) -> Self
fn look_at_yz(_pos: Vector3<T>, _look_at: Vector3<T>) -> Self
Generate a rotation for an object at a position look at a point.
only uses the Z and Y rotation axes to arrive at this result
Z rotation axis Read more
Source§fn look_at_lock(
_pos: Vector3<T>,
_look_at: Vector3<T>,
_locked_axis: Vector3<T>,
) -> Self
fn look_at_lock( _pos: Vector3<T>, _look_at: Vector3<T>, _locked_axis: Vector3<T>, ) -> Self
Generate a rotation for an object at a position look at a point.
only uses the Z and Y rotation axes to arrive at this result
Z rotation axis Read more
Source§fn camera_look_at_xy(_pos: Vector3<T>, _look_at: Vector3<T>) -> Self
fn camera_look_at_xy(_pos: Vector3<T>, _look_at: Vector3<T>) -> Self
Camera Objects look along the -Z axis so the look_at function for a camera object
needs to be modified a little. flipping the pos and the look_at should do the trick.
TODO: finish comments watch out bc z is reversed and things may get wonky Read more
fn camera_look_at_xz(_pos: Vector3<T>, _look_at: Vector3<T>) -> Self
fn camera_look_at_yz(_pos: Vector3<T>, _look_at: Vector3<T>) -> Self
fn camera_look_at_lock( _pos: Vector3<T>, _look_at: Vector3<T>, _locked_axis: Vector3<T>, ) -> Self
const X_AXIS: Vector3<T> = _
const Y_AXIS: Vector3<T> = _
const Z_AXIS: Vector3<T> = _
impl<T> Construct<T> for Euler<T>where
T: Construct<T>,
impl<T: Copy> Copy for Euler<T>
Auto Trait Implementations§
impl<T> Freeze for Euler<T>where
T: Freeze,
impl<T> RefUnwindSafe for Euler<T>where
T: RefUnwindSafe,
impl<T> Send for Euler<T>where
T: Send,
impl<T> Sync for Euler<T>where
T: Sync,
impl<T> Unpin for Euler<T>where
T: Unpin,
impl<T> UnwindSafe for Euler<T>where
T: UnwindSafe,
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