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

pub struct Vector3i {
    pub x: i32,
    pub y: i32,
    pub z: i32,
}

Fields

x: i32y: i32z: i32

Implementations

impl Vector3i[src]

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

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

Trait Implementations

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

type Output = Point3i

The resulting type after applying the + operator.

impl<'a> Add<&'a Vector3i> for Point3i[src]

type Output = Point3i

The resulting type after applying the + operator.

impl<'a> Add<Vector3i> for &'a Point3i[src]

type Output = Point3i

The resulting type after applying the + operator.

impl Add<Vector3i> for Point3i[src]

type Output = Point3i

The resulting type after applying the + operator.

impl Clone for Vector3i[src]

impl Copy for Vector3i[src]

impl Debug for Vector3i[src]

impl Default for Vector3i[src]

impl Index<XYZEnum> for Vector3i[src]

type Output = i32

The returned type after indexing.

impl PartialEq<Vector3i> for Vector3i[src]

impl StructuralPartialEq for Vector3i[src]

Auto Trait Implementations

impl RefUnwindSafe for Vector3i

impl Send for Vector3i

impl Sync for Vector3i

impl Unpin for Vector3i

impl UnwindSafe for Vector3i

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.