[−][src]Struct pbrt::core::geometry::Normal3f
Fields
x: Float
y: Float
z: Float
Implementations
impl Normal3f
[src]
pub fn length_squared(&self) -> Float
[src]
pub fn length(&self) -> Float
[src]
pub fn normalize(&self) -> Normal3f
[src]
Compute a new normal pointing in the same direction but with unit length.
Trait Implementations
impl<'a, 'b> Add<&'a Normal3f> for &'b Normal3f
[src]
type Output = Normal3f
The resulting type after applying the +
operator.
fn add(self, rhs: &Normal3f) -> Self::Output
[src]
impl<'a> Add<&'a Normal3f> for Normal3f
[src]
type Output = Normal3f
The resulting type after applying the +
operator.
fn add(self, rhs: &Normal3f) -> Self::Output
[src]
impl<'a> Add<Normal3f> for &'a Normal3f
[src]
type Output = Normal3f
The resulting type after applying the +
operator.
fn add(self, rhs: Normal3f) -> Self::Output
[src]
impl Add<Normal3f> for Normal3f
[src]
type Output = Normal3f
The resulting type after applying the +
operator.
fn add(self, rhs: Normal3f) -> Self::Output
[src]
impl Clone for Normal3f
[src]
impl Copy for Normal3f
[src]
impl Debug for Normal3f
[src]
impl Default for Normal3f
[src]
impl<'a> Div<f32> for &'a Normal3f
[src]
type Output = Normal3f
The resulting type after applying the /
operator.
fn div(self, rhs: Float) -> Self::Output
[src]
impl Div<f32> for Normal3f
[src]
type Output = Normal3f
The resulting type after applying the /
operator.
fn div(self, rhs: Float) -> Self::Output
[src]
impl From<Normal3f> for Vector3f
[src]
impl From<Vector3f> for Normal3f
[src]
impl Index<XYZEnum> for Normal3f
[src]
impl<'a> Mul<f32> for &'a Normal3f
[src]
type Output = Normal3f
The resulting type after applying the *
operator.
fn mul(self, rhs: Float) -> Self::Output
[src]
impl Mul<f32> for Normal3f
[src]
type Output = Normal3f
The resulting type after applying the *
operator.
fn mul(self, rhs: Float) -> Self::Output
[src]
impl MulAssign<f32> for Normal3f
[src]
fn mul_assign(&mut self, rhs: Float)
[src]
impl Neg for Normal3f
[src]
type Output = Normal3f
The resulting type after applying the -
operator.
fn neg(self) -> Self::Output
[src]
impl PartialEq<Normal3f> for Normal3f
[src]
impl StructuralPartialEq for Normal3f
[src]
impl<'a, 'b> Sub<&'a Normal3f> for &'b Normal3f
[src]
type Output = Normal3f
The resulting type after applying the -
operator.
fn sub(self, rhs: &Normal3f) -> Self::Output
[src]
impl<'a> Sub<&'a Normal3f> for Normal3f
[src]
type Output = Normal3f
The resulting type after applying the -
operator.
fn sub(self, rhs: &Normal3f) -> Self::Output
[src]
impl<'a> Sub<Normal3f> for &'a Normal3f
[src]
type Output = Normal3f
The resulting type after applying the -
operator.
fn sub(self, rhs: Normal3f) -> Self::Output
[src]
impl Sub<Normal3f> for Normal3f
[src]
Auto Trait Implementations
impl RefUnwindSafe for Normal3f
impl Send for Normal3f
impl Sync for Normal3f
impl Unpin for Normal3f
impl UnwindSafe for Normal3f
Blanket Implementations
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<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>,