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

pub struct Vector2i {
    pub x: i32,
    pub y: i32,
}

Fields

x: i32y: i32

Implementations

impl Vector2i[src]

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

Trait Implementations

impl Clone for Vector2i[src]

impl Copy for Vector2i[src]

impl Debug for Vector2i[src]

impl Default for Vector2i[src]

impl From<Vector2i> for Point2i[src]

impl Index<XYEnum> for Vector2i[src]

type Output = i32

The returned type after indexing.

impl IndexMut<XYEnum> for Vector2i[src]

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

type Output = Point2i

The resulting type after applying the - operator.

impl<'a> Sub<&'a Vector2i> for Point2i[src]

type Output = Point2i

The resulting type after applying the - operator.

impl<'a> Sub<Vector2i> for &'a Point2i[src]

type Output = Point2i

The resulting type after applying the - operator.

impl Sub<Vector2i> for Point2i[src]

type Output = Point2i

The resulting type after applying the - operator.

Auto Trait Implementations

impl RefUnwindSafe for Vector2i

impl Send for Vector2i

impl Sync for Vector2i

impl Unpin for Vector2i

impl UnwindSafe for Vector2i

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.