Struct rs_pbrt::core::quaternion::Quaternion
source · pub struct Quaternion {
pub v: Vector3f,
pub w: Float,
}
Fields§
§v: Vector3f
§w: Float
Implementations§
source§impl Quaternion
impl Quaternion
Trait Implementations§
source§impl Add<Quaternion> for Quaternion
impl Add<Quaternion> for Quaternion
§type Output = Quaternion
type Output = Quaternion
The resulting type after applying the
+
operator.source§fn add(self, rhs: Quaternion) -> Quaternion
fn add(self, rhs: Quaternion) -> Quaternion
Performs the
+
operation. Read moresource§impl Clone for Quaternion
impl Clone for Quaternion
source§fn clone(&self) -> Quaternion
fn clone(&self) -> Quaternion
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for Quaternion
impl Debug for Quaternion
source§impl Default for Quaternion
impl Default for Quaternion
source§impl Div<f32> for Quaternion
impl Div<f32> for Quaternion
§type Output = Quaternion
type Output = Quaternion
The resulting type after applying the
/
operator.source§impl Mul<f32> for Quaternion
impl Mul<f32> for Quaternion
§type Output = Quaternion
type Output = Quaternion
The resulting type after applying the
*
operator.source§impl Neg for Quaternion
impl Neg for Quaternion
§type Output = Quaternion
type Output = Quaternion
The resulting type after applying the
-
operator.source§fn neg(self) -> Quaternion
fn neg(self) -> Quaternion
Performs the unary
-
operation. Read moresource§impl Sub<Quaternion> for Quaternion
impl Sub<Quaternion> for Quaternion
§type Output = Quaternion
type Output = Quaternion
The resulting type after applying the
-
operator.source§fn sub(self, rhs: Quaternion) -> Quaternion
fn sub(self, rhs: Quaternion) -> Quaternion
Performs the
-
operation. Read moreimpl Copy for Quaternion
Auto Trait Implementations§
impl RefUnwindSafe for Quaternion
impl Send for Quaternion
impl Sync for Quaternion
impl Unpin for Quaternion
impl UnwindSafe for Quaternion
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
source§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<R, P> ReadPrimitive<R> for Pwhere
R: Read + ReadEndian<P>,
P: Default,
impl<R, P> ReadPrimitive<R> for Pwhere R: Read + ReadEndian<P>, P: Default,
source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian()
.