pub struct Axes<T> {
pub x: Vector3<T>,
pub y: Vector3<T>,
pub z: Vector3<T>,
}Fields§
§x: Vector3<T>§y: Vector3<T>§z: Vector3<T>Implementations§
Source§impl<T> Axes<T>
impl<T> Axes<T>
Sourcepub fn from_left_frd(left: Vector3<T>, frd: Vector3<T>) -> Self
pub fn from_left_frd(left: Vector3<T>, frd: Vector3<T>) -> Self
Returns a set of axes calculated using the passed in x and z axes
§Arguments
left- The x axis represented by a Vector3frd- The z axis represented by a Vector3
Sourcepub fn from_up_frd(up: Vector3<T>, frd: Vector3<T>) -> Self
pub fn from_up_frd(up: Vector3<T>, frd: Vector3<T>) -> Self
Returns a set of axes calculated using the passed in y and z axes
§Arguments
up- The y axis represented by a Vector3frd- The z axis represented by a Vector3
Sourcepub fn from_left_up(left: Vector3<T>, up: Vector3<T>) -> Self
pub fn from_left_up(left: Vector3<T>, up: Vector3<T>) -> Self
Returns a set of axes calculated using the passed in x and y axes
§Arguments
left- The x axis represented by a Vector3up- The y axis represented by a Vector3
Trait Implementations§
Source§impl<T> From<Axes<T>> for Quaternion<T>
impl<T> From<Axes<T>> for Quaternion<T>
Source§impl<T> From<Quaternion<T>> for Axes<T>
impl<T> From<Quaternion<T>> for Axes<T>
Source§fn from(q: Quaternion<T>) -> Self
fn from(q: Quaternion<T>) -> Self
Converts to this type from the input type.
impl<T: Copy> Copy for Axes<T>
Auto Trait Implementations§
impl<T> Freeze for Axes<T>where
T: Freeze,
impl<T> RefUnwindSafe for Axes<T>where
T: RefUnwindSafe,
impl<T> Send for Axes<T>where
T: Send,
impl<T> Sync for Axes<T>where
T: Sync,
impl<T> Unpin for Axes<T>where
T: Unpin,
impl<T> UnwindSafe for Axes<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