[][src]Struct pbrt::core::geometry::Normal3f

pub struct Normal3f {
    pub x: Float,
    pub y: Float,
    pub z: Float,
}

Fields

x: Floaty: Floatz: 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.

impl<'a> Add<&'a Normal3f> for Normal3f[src]

type Output = Normal3f

The resulting type after applying the + operator.

impl<'a> Add<Normal3f> for &'a Normal3f[src]

type Output = Normal3f

The resulting type after applying the + operator.

impl Add<Normal3f> for Normal3f[src]

type Output = Normal3f

The resulting type after applying the + operator.

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.

impl Div<f32> for Normal3f[src]

type Output = Normal3f

The resulting type after applying the / operator.

impl From<Normal3f> for Vector3f[src]

impl From<Vector3f> for Normal3f[src]

impl Index<XYZEnum> for Normal3f[src]

type Output = Float

The returned type after indexing.

impl<'a> Mul<f32> for &'a Normal3f[src]

type Output = Normal3f

The resulting type after applying the * operator.

impl Mul<f32> for Normal3f[src]

type Output = Normal3f

The resulting type after applying the * operator.

impl MulAssign<f32> for Normal3f[src]

impl Neg for Normal3f[src]

type Output = Normal3f

The resulting type after applying the - operator.

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.

impl<'a> Sub<&'a Normal3f> for Normal3f[src]

type Output = Normal3f

The resulting type after applying the - operator.

impl<'a> Sub<Normal3f> for &'a Normal3f[src]

type Output = Normal3f

The resulting type after applying the - operator.

impl Sub<Normal3f> for Normal3f[src]

type Output = Normal3f

The resulting type after applying the - operator.

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.