Struct rs_pbrt::core::quaternion::Quaternion
source · [−]Fields
v: Vector3f
w: Float
Implementations
sourceimpl Quaternion
impl Quaternion
Trait Implementations
sourceimpl Add<Quaternion> for Quaternion
impl Add<Quaternion> for Quaternion
type Output = Quaternion
type Output = Quaternion
The resulting type after applying the +
operator.
sourcefn add(self, rhs: Quaternion) -> Quaternion
fn add(self, rhs: Quaternion) -> Quaternion
Performs the +
operation. Read more
sourceimpl Clone for Quaternion
impl Clone for Quaternion
sourcefn clone(&self) -> Quaternion
fn clone(&self) -> Quaternion
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for Quaternion
impl Debug for Quaternion
sourceimpl Default for Quaternion
impl Default for Quaternion
sourceimpl Div<f32> for Quaternion
impl Div<f32> for Quaternion
type Output = Quaternion
type Output = Quaternion
The resulting type after applying the /
operator.
sourcefn div(self, rhs: Float) -> Quaternion
fn div(self, rhs: Float) -> Quaternion
Performs the /
operation. Read more
sourceimpl Mul<f32> for Quaternion
impl Mul<f32> for Quaternion
type Output = Quaternion
type Output = Quaternion
The resulting type after applying the *
operator.
sourcefn mul(self, rhs: Float) -> Quaternion
fn mul(self, rhs: Float) -> Quaternion
Performs the *
operation. Read more
sourceimpl Neg for Quaternion
impl Neg for Quaternion
type Output = Quaternion
type Output = Quaternion
The resulting type after applying the -
operator.
sourcefn neg(self) -> Quaternion
fn neg(self) -> Quaternion
Performs the unary -
operation. Read more
sourceimpl Sub<Quaternion> for Quaternion
impl Sub<Quaternion> for Quaternion
type Output = Quaternion
type Output = Quaternion
The resulting type after applying the -
operator.
sourcefn sub(self, rhs: Quaternion) -> Quaternion
fn sub(self, rhs: Quaternion) -> Quaternion
Performs the -
operation. Read more
impl 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<R, P> ReadPrimitive<R> for P where
R: Read + ReadEndian<P>,
P: Default,
impl<R, P> ReadPrimitive<R> for P where
R: Read + ReadEndian<P>,
P: Default,
sourcefn 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()
.
sourcefn read_from_big_endian(read: &mut R) -> Result<Self, Error>
fn read_from_big_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as ReadEndian::read_from_big_endian()
.
sourcefn read_from_native_endian(read: &mut R) -> Result<Self, Error>
fn read_from_native_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as ReadEndian::read_from_native_endian()
.
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more