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

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

Fields

x: Floaty: Floatz: Float

Implementations

impl Vector3f[src]

pub fn has_nans(&self) -> bool[src]

pub fn abs(&self) -> Vector3f[src]

pub fn length_squared(&self) -> Float[src]

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

pub fn normalize(&self) -> Vector3f[src]

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

Trait Implementations

impl<'a, 'b> Add<&'a Vector3f> for &'b Vector3f[src]

type Output = Vector3f

The resulting type after applying the + operator.

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

type Output = Vector3f

The resulting type after applying the + operator.

impl<'a, 'b> Add<&'a Vector3f> for &'b Point3f[src]

type Output = Point3f

The resulting type after applying the + operator.

impl<'a> Add<&'a Vector3f> for Point3f[src]

type Output = Point3f

The resulting type after applying the + operator.

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

type Output = Vector3f

The resulting type after applying the + operator.

impl Add<Vector3f> for Vector3f[src]

type Output = Vector3f

The resulting type after applying the + operator.

impl<'a> Add<Vector3f> for &'a Point3f[src]

type Output = Point3f

The resulting type after applying the + operator.

impl Add<Vector3f> for Point3f[src]

type Output = Point3f

The resulting type after applying the + operator.

impl AddAssign<Vector3f> for Point3f[src]

impl AddAssign<Vector3f> for Vector3f[src]

impl Clone for Vector3f[src]

impl Copy for Vector3f[src]

impl Debug for Vector3f[src]

impl Default for Vector3f[src]

impl<'a> Div<f32> for &'a Vector3f[src]

type Output = Vector3f

The resulting type after applying the / operator.

impl Div<f32> for Vector3f[src]

type Output = Vector3f

The resulting type after applying the / operator.

impl DivAssign<f32> for Vector3f[src]

impl From<Normal3f> for Vector3f[src]

impl From<Point3f> for Vector3f[src]

impl From<Vector3f> for Normal3f[src]

impl Index<XYZEnum> for Vector3f[src]

type Output = Float

The returned type after indexing.

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

type Output = Vector3f

The resulting type after applying the * operator.

impl Mul<f32> for Vector3f[src]

type Output = Vector3f

The resulting type after applying the * operator.

impl MulAssign<f32> for Vector3f[src]

impl Neg for Vector3f[src]

type Output = Vector3f

The resulting type after applying the - operator.

impl PartialEq<Vector3f> for Vector3f[src]

impl StructuralPartialEq for Vector3f[src]

impl<'a, 'b> Sub<&'a Vector3f> for &'b Vector3f[src]

type Output = Vector3f

The resulting type after applying the - operator.

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

type Output = Vector3f

The resulting type after applying the - operator.

impl<'a, 'b> Sub<&'a Vector3f> for &'b Point3f[src]

type Output = Point3f

The resulting type after applying the - operator.

impl<'a> Sub<&'a Vector3f> for Point3f[src]

type Output = Point3f

The resulting type after applying the - operator.

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

type Output = Vector3f

The resulting type after applying the - operator.

impl Sub<Vector3f> for Vector3f[src]

type Output = Vector3f

The resulting type after applying the - operator.

impl<'a> Sub<Vector3f> for &'a Point3f[src]

type Output = Point3f

The resulting type after applying the - operator.

impl Sub<Vector3f> for Point3f[src]

type Output = Point3f

The resulting type after applying the - operator.

Auto Trait Implementations

impl RefUnwindSafe for Vector3f

impl Send for Vector3f

impl Sync for Vector3f

impl Unpin for Vector3f

impl UnwindSafe for Vector3f

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.