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

pub struct Normal3<T> {
    pub x: T,
    pub y: T,
    pub z: T,
}

Fields

x: Ty: Tz: T

Methods

impl Normal3<Float>[src]

pub fn normalize(&self) -> Normal3<Float>[src]

Compute a new normal pointing in the same direction but with unit length.

impl<T> Normal3<T>[src]

pub fn length_squared(&self) -> T where
    T: Copy + Add<T, Output = T> + Mul<T, Output = T>, 
[src]

pub fn length(&self) -> T where
    T: Float
[src]

Trait Implementations

impl<T> PartialEq<Normal3<T>> for Normal3<T> where
    T: PartialOrd
[src]

impl<T: Clone> Clone for Normal3<T>[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

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

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

impl<T: Copy> Copy for Normal3<T>[src]

impl<T: Default> Default for Normal3<T>[src]

impl<T: Debug> Debug for Normal3<T>[src]

impl Div<f32> for Normal3<f32>[src]

type Output = Normal3<f32>

The resulting type after applying the / operator.

impl<T> Add<Normal3<T>> for Normal3<T> where
    T: Copy + Add<T, Output = T>, 
[src]

type Output = Normal3<T>

The resulting type after applying the + operator.

impl<T> Sub<Normal3<T>> for Normal3<T> where
    T: Copy + Sub<T, Output = T>, 
[src]

type Output = Normal3<T>

The resulting type after applying the - operator.

impl<T> Mul<T> for Normal3<T> where
    T: Copy + Mul<T, Output = T>, 
[src]

type Output = Normal3<T>

The resulting type after applying the * operator.

impl<T> Neg for Normal3<T> where
    T: Copy + Neg<Output = T>, 
[src]

type Output = Normal3<T>

The resulting type after applying the - operator.

impl<T> MulAssign<T> for Normal3<T> where
    T: Copy + MulAssign
[src]

impl<T> Index<u8> for Normal3<T>[src]

type Output = T

The returned type after indexing.

impl<T> IndexMut<u8> for Normal3<T>[src]

Auto Trait Implementations

impl<T> Send for Normal3<T> where
    T: Send

impl<T> Sync for Normal3<T> where
    T: Sync

Blanket Implementations

impl<T> From for T[src]

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

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

type Owned = T

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

type Error = Infallible

The type returned in the event of a conversion error.

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

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

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

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

The type returned in the event of a conversion error.

impl<T> SetParameter for T[src]

fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
    T: Parameter<Self>, 
[src]

Sets value as a parameter of self.