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

pub struct Point2f {
    pub x: Float,
    pub y: Float,
}

Fields

x: Floaty: Float

Implementations

impl Point2f[src]

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

Trait Implementations

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

type Output = Point2f

The resulting type after applying the + operator.

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

type Output = Point2f

The resulting type after applying the + operator.

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

type Output = Point2f

The resulting type after applying the + operator.

impl<'a> Add<&'a Vector2f> for Point2f[src]

type Output = Point2f

The resulting type after applying the + operator.

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

type Output = Point2f

The resulting type after applying the + operator.

impl Add<Point2f> for Point2f[src]

type Output = Point2f

The resulting type after applying the + operator.

impl<'a> Add<Vector2f> for &'a Point2f[src]

type Output = Point2f

The resulting type after applying the + operator.

impl Add<Vector2f> for Point2f[src]

type Output = Point2f

The resulting type after applying the + operator.

impl Clone for Point2f[src]

impl Copy for Point2f[src]

impl Debug for Point2f[src]

impl Default for Point2f[src]

impl From<Vector2f> for Point2f[src]

impl Index<XYEnum> for Point2f[src]

type Output = Float

The returned type after indexing.

impl IndexMut<XYEnum> for Point2f[src]

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

type Output = Point2f

The resulting type after applying the * operator.

impl Mul<f32> for Point2f[src]

type Output = Point2f

The resulting type after applying the * operator.

impl MulAssign<f32> for Point2f[src]

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

type Output = Vector2f

The resulting type after applying the - operator.

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

type Output = Vector2f

The resulting type after applying the - operator.

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

type Output = Point2f

The resulting type after applying the - operator.

impl<'a> Sub<&'a Vector2f> for Point2f[src]

type Output = Point2f

The resulting type after applying the - operator.

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

type Output = Vector2f

The resulting type after applying the - operator.

impl Sub<Point2f> for Point2f[src]

type Output = Vector2f

The resulting type after applying the - operator.

impl<'a> Sub<Vector2f> for &'a Point2f[src]

type Output = Point2f

The resulting type after applying the - operator.

impl Sub<Vector2f> for Point2f[src]

type Output = Point2f

The resulting type after applying the - operator.

Auto Trait Implementations

impl RefUnwindSafe for Point2f

impl Send for Point2f

impl Sync for Point2f

impl Unpin for Point2f

impl UnwindSafe for Point2f

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.