Axes

Struct Axes 

Source
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>

Source

pub fn from_left_frd(left: Vector3<T>, frd: Vector3<T>) -> Self
where T: Add<T, Output = T> + Sub<T, Output = T> + Mul<T, Output = T> + Div<T, Output = T> + F32Fmt + Copy,

Returns a set of axes calculated using the passed in x and z axes

§Arguments
  • left - The x axis represented by a Vector3
  • frd - The z axis represented by a Vector3
Source

pub fn from_up_frd(up: Vector3<T>, frd: Vector3<T>) -> Self
where T: Add<T, Output = T> + Sub<T, Output = T> + Mul<T, Output = T> + Div<T, Output = T> + F32Fmt + Copy,

Returns a set of axes calculated using the passed in y and z axes

§Arguments
  • up - The y axis represented by a Vector3
  • frd - The z axis represented by a Vector3
Source

pub fn from_left_up(left: Vector3<T>, up: Vector3<T>) -> Self
where T: Add<T, Output = T> + Sub<T, Output = T> + Mul<T, Output = T> + Div<T, Output = T> + F32Fmt + Copy,

Returns a set of axes calculated using the passed in x and y axes

§Arguments
  • left - The x axis represented by a Vector3
  • up - The y axis represented by a Vector3

Trait Implementations§

Source§

impl<T: Clone> Clone for Axes<T>

Source§

fn clone(&self) -> Axes<T>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<T> Debug for Axes<T>
where T: Debug + Copy,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T> From<Axes<T>> for Euler<T>
where T: Copy,

Source§

fn from(a: Axes<T>) -> Self

Converts to this type from the input type.
Source§

impl<T> From<Axes<T>> for Matrix3<T>
where T: Copy,

Source§

fn from(other: Axes<T>) -> Matrix3<T>

Converts to this type from the input type.
Source§

impl<T> From<Axes<T>> for Quaternion<T>
where T: Construct<T> + Copy,

Source§

fn from(a: Axes<T>) -> Self

Converts to this type from the input type.
Source§

impl<T> From<Axes<T>> for Rotor<T>
where T: Copy,

Source§

fn from(other: Axes<T>) -> Self

Converts to this type from the input type.
Source§

impl<T> From<Euler<T>> for Axes<T>
where T: Mul<T, Output = T> + Div<T, Output = T> + F32Fmt + Add<T, Output = T> + Copy,

Source§

fn from(e: Euler<T>) -> Self

Converts to this type from the input type.
Source§

impl<T> From<Matrix3<T>> for Axes<T>
where T: Mul<T, Output = T> + Div<T, Output = T> + F32Fmt + Add<T, Output = T> + Copy,

Source§

fn from(mat: Matrix3<T>) -> Self

Converts to this type from the input type.
Source§

impl<T> From<Quaternion<T>> for Axes<T>
where T: Add<T, Output = T> + Sub<T, Output = T> + Mul<T, Output = T> + Div<T, Output = T> + Neg<Output = T> + F32Fmt + Debug + One + Two + Zero + Copy,

Source§

fn from(q: Quaternion<T>) -> Self

Converts to this type from the input type.
Source§

impl<T> From<Rotor<T>> for Axes<T>
where T: Mul<T, Output = T> + Div<T, Output = T> + F32Fmt + Add<T, Output = T> + Copy,

Source§

fn from(r: Rotor<T>) -> Self

Converts to this type from the input type.
Source§

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T, A> Typed<T> for A
where T: Construct<A>,