[−][src]Struct nannou::math::Basis3
A three-dimensional rotation matrix.
The matrix is guaranteed to be orthogonal, so some operations, specifically
inversion, can be implemented more efficiently than the implementations for
math::Matrix3
. To ensure orthogonality is maintained, the operations have
been restricted to a subset of those implemented on Matrix3
.
Methods
impl<S> Basis3<S> where
S: BaseFloat,
[src]
S: BaseFloat,
pub fn from_quaternion(quaternion: &Quaternion<S>) -> Basis3<S>
[src]
Create a new rotation matrix from a quaternion.
Trait Implementations
impl<S> AbsDiffEq<Basis3<S>> for Basis3<S> where
S: BaseFloat,
[src]
S: BaseFloat,
type Epsilon = <S as AbsDiffEq<S>>::Epsilon
Used for specifying relative comparisons.
fn default_epsilon() -> <S as AbsDiffEq<S>>::Epsilon
[src]
fn abs_diff_eq(
&self,
other: &Basis3<S>,
epsilon: <S as AbsDiffEq<S>>::Epsilon
) -> bool
[src]
&self,
other: &Basis3<S>,
epsilon: <S as AbsDiffEq<S>>::Epsilon
) -> bool
fn abs_diff_ne(&self, other: &Rhs, epsilon: Self::Epsilon) -> bool
impl<S> AsRef<Matrix3<S>> for Basis3<S>
[src]
impl<S> Clone for Basis3<S> where
S: Clone,
[src]
S: Clone,
impl<S> Copy for Basis3<S> where
S: Copy,
[src]
S: Copy,
impl<S> Debug for Basis3<S> where
S: Debug,
[src]
S: Debug,
impl<'de, S> Deserialize<'de> for Basis3<S> where
S: Deserialize<'de>,
[src]
S: Deserialize<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<Basis3<S>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
__deserializer: __D
) -> Result<Basis3<S>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
impl<S> From<Basis3<S>> for Quaternion<S> where
S: BaseFloat,
[src]
S: BaseFloat,
fn from(b: Basis3<S>) -> Quaternion<S>
[src]
impl<S> From<Basis3<S>> for Matrix3<S> where
S: BaseFloat,
[src]
S: BaseFloat,
impl<A> From<Euler<A>> for Basis3<<A as Angle>::Unitless> where
A: Angle + Into<Rad<<A as Angle>::Unitless>>,
[src]
A: Angle + Into<Rad<<A as Angle>::Unitless>>,
fn from(src: Euler<A>) -> Basis3<<A as Angle>::Unitless>
[src]
Create a three-dimensional rotation matrix from a set of euler angles.
impl<S> From<Quaternion<S>> for Basis3<S> where
S: BaseFloat,
[src]
S: BaseFloat,
fn from(quat: Quaternion<S>) -> Basis3<S>
[src]
impl<'a, S> Mul<&'a Basis3<S>> for Basis3<S> where
S: BaseFloat,
[src]
S: BaseFloat,
type Output = Basis3<S>
The resulting type after applying the *
operator.
fn mul(self, other: &'a Basis3<S>) -> Basis3<S>
[src]
impl<'a, 'b, S> Mul<&'a Basis3<S>> for &'b Basis3<S> where
S: BaseFloat,
[src]
S: BaseFloat,
type Output = Basis3<S>
The resulting type after applying the *
operator.
fn mul(self, other: &'a Basis3<S>) -> Basis3<S>
[src]
impl<S> Mul<Basis3<S>> for Basis3<S> where
S: BaseFloat,
[src]
S: BaseFloat,
type Output = Basis3<S>
The resulting type after applying the *
operator.
fn mul(self, other: Basis3<S>) -> Basis3<S>
[src]
impl<'a, S> Mul<Basis3<S>> for &'a Basis3<S> where
S: BaseFloat,
[src]
S: BaseFloat,
type Output = Basis3<S>
The resulting type after applying the *
operator.
fn mul(self, other: Basis3<S>) -> Basis3<S>
[src]
impl<S> One for Basis3<S> where
S: BaseFloat,
[src]
S: BaseFloat,
fn one() -> Basis3<S>
[src]
fn set_one(&mut self)
[src]
fn is_one(&self) -> bool where
Self: PartialEq<Self>,
[src]
Self: PartialEq<Self>,
impl<S> PartialEq<Basis3<S>> for Basis3<S> where
S: PartialEq<S>,
[src]
S: PartialEq<S>,
impl<'a, S> Product<&'a Basis3<S>> for Basis3<S> where
S: 'a + BaseFloat,
[src]
S: 'a + BaseFloat,
impl<S> Product<Basis3<S>> for Basis3<S> where
S: BaseFloat,
[src]
S: BaseFloat,
impl<S> RelativeEq<Basis3<S>> for Basis3<S> where
S: BaseFloat,
[src]
S: BaseFloat,
fn default_max_relative() -> <S as AbsDiffEq<S>>::Epsilon
[src]
fn relative_eq(
&self,
other: &Basis3<S>,
epsilon: <S as AbsDiffEq<S>>::Epsilon,
max_relative: <S as AbsDiffEq<S>>::Epsilon
) -> bool
[src]
&self,
other: &Basis3<S>,
epsilon: <S as AbsDiffEq<S>>::Epsilon,
max_relative: <S as AbsDiffEq<S>>::Epsilon
) -> bool
fn relative_ne(
&self,
other: &Rhs,
epsilon: Self::Epsilon,
max_relative: Self::Epsilon
) -> bool
&self,
other: &Rhs,
epsilon: Self::Epsilon,
max_relative: Self::Epsilon
) -> bool
impl<S> Rotation<Point3<S>> for Basis3<S> where
S: BaseFloat,
[src]
S: BaseFloat,
fn look_at(dir: Vector3<S>, up: Vector3<S>) -> Basis3<S>
[src]
fn between_vectors(a: Vector3<S>, b: Vector3<S>) -> Basis3<S>
[src]
fn rotate_vector(&self, vec: Vector3<S>) -> Vector3<S>
[src]
fn invert(&self) -> Basis3<S>
[src]
fn rotate_point(&self, point: P) -> P
[src]
impl<S> Rotation3<S> for Basis3<S> where
S: BaseFloat,
[src]
S: BaseFloat,
fn from_axis_angle<A>(axis: Vector3<S>, angle: A) -> Basis3<S> where
A: Into<Rad<S>>,
[src]
A: Into<Rad<S>>,
fn from_angle_x<A>(theta: A) -> Basis3<S> where
A: Into<Rad<S>>,
[src]
A: Into<Rad<S>>,
fn from_angle_y<A>(theta: A) -> Basis3<S> where
A: Into<Rad<S>>,
[src]
A: Into<Rad<S>>,
fn from_angle_z<A>(theta: A) -> Basis3<S> where
A: Into<Rad<S>>,
[src]
A: Into<Rad<S>>,
impl<S> Serialize for Basis3<S> where
S: Serialize,
[src]
S: Serialize,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl<S> StructuralPartialEq for Basis3<S>
[src]
impl<S> UlpsEq<Basis3<S>> for Basis3<S> where
S: BaseFloat,
[src]
S: BaseFloat,
Auto Trait Implementations
impl<S> RefUnwindSafe for Basis3<S> where
S: RefUnwindSafe,
S: RefUnwindSafe,
impl<S> Send for Basis3<S> where
S: Send,
S: Send,
impl<S> Sync for Basis3<S> where
S: Sync,
S: Sync,
impl<S> Unpin for Basis3<S> where
S: Unpin,
S: Unpin,
impl<S> UnwindSafe for Basis3<S> where
S: UnwindSafe,
S: UnwindSafe,
Blanket Implementations
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
D: AdaptFrom<S, Swp, Dwp, T>,
Dwp: WhitePoint,
Swp: WhitePoint,
T: Component + Float,
[src]
D: AdaptFrom<S, Swp, Dwp, T>,
Dwp: WhitePoint,
Swp: WhitePoint,
T: Component + Float,
fn adapt_into_using<M>(self, method: M) -> D where
M: TransformMatrix<Swp, Dwp, T>,
[src]
M: TransformMatrix<Swp, Dwp, T>,
fn adapt_into(self) -> D
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> ConvertInto<U> for T where
U: ConvertFrom<T>,
[src]
U: ConvertFrom<T>,
fn convert_into(self) -> U
[src]
fn convert_unclamped_into(self) -> U
[src]
fn try_convert_into(self) -> Result<U, OutOfBounds<U>>
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> One for T where
T: One,
T: One,
fn one() -> T
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
impl<T> Style for T where
T: Any + Debug + PartialEq<T>,
[src]
T: Any + Debug + PartialEq<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,