Struct rs_pbrt::core::geometry::Point3f

source ·
pub struct Point3f {
    pub x: Float,
    pub y: Float,
    pub z: Float,
}

Fields§

§x: Float§y: Float§z: Float

Implementations§

source§

impl Point3f

source

pub fn has_nans(&self) -> bool

Trait Implementations§

source§

impl<'a, 'b> Add<&'a Point3f> for &'b Point3f

§

type Output = Point3f

The resulting type after applying the + operator.
source§

fn add(self, rhs: &Point3f) -> Self::Output

Performs the + operation. Read more
source§

impl<'a> Add<&'a Point3f> for Point3f

§

type Output = Point3f

The resulting type after applying the + operator.
source§

fn add(self, rhs: &Point3f) -> Self::Output

Performs the + operation. Read more
source§

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

§

type Output = Point3f

The resulting type after applying the + operator.
source§

fn add(self, rhs: &Vector3f) -> Self::Output

Performs the + operation. Read more
source§

impl<'a> Add<&'a Vector3f> for Point3f

§

type Output = Point3f

The resulting type after applying the + operator.
source§

fn add(self, rhs: &Vector3f) -> Self::Output

Performs the + operation. Read more
source§

impl<'a> Add<Point3f> for &'a Point3f

§

type Output = Point3f

The resulting type after applying the + operator.
source§

fn add(self, rhs: Point3f) -> Self::Output

Performs the + operation. Read more
source§

impl Add<Point3f> for Point3f

§

type Output = Point3f

The resulting type after applying the + operator.
source§

fn add(self, rhs: Point3f) -> Self::Output

Performs the + operation. Read more
source§

impl<'a> Add<Vector3f> for &'a Point3f

§

type Output = Point3f

The resulting type after applying the + operator.
source§

fn add(self, rhs: Vector3f) -> Self::Output

Performs the + operation. Read more
source§

impl Add<Vector3f> for Point3f

§

type Output = Point3f

The resulting type after applying the + operator.
source§

fn add(self, rhs: Vector3f) -> Self::Output

Performs the + operation. Read more
source§

impl AddAssign<Point3f> for Point3f

source§

fn add_assign(&mut self, rhs: Point3f)

Performs the += operation. Read more
source§

impl AddAssign<Vector3f> for Point3f

source§

fn add_assign(&mut self, rhs: Vector3f)

Performs the += operation. Read more
source§

impl Clone for Point3f

source§

fn clone(&self) -> Point3f

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Point3f

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for Point3f

source§

fn default() -> Point3f

Returns the “default value” for a type. Read more
source§

impl<'a> Div<f32> for &'a Point3f

§

type Output = Point3f

The resulting type after applying the / operator.
source§

fn div(self, rhs: Float) -> Self::Output

Performs the / operation. Read more
source§

impl Div<f32> for Point3f

§

type Output = Point3f

The resulting type after applying the / operator.
source§

fn div(self, rhs: Float) -> Self::Output

Performs the / operation. Read more
source§

impl DivAssign<f32> for Point3f

source§

fn div_assign(&mut self, rhs: Float)

Performs the /= operation. Read more
source§

impl From<Point3f> for Vector3f

source§

fn from(p: Point3f) -> Self

Converts to this type from the input type.
source§

impl Index<XYZEnum> for Point3f

§

type Output = f32

The returned type after indexing.
source§

fn index(&self, index: XYZEnum) -> &Float

Performs the indexing (container[index]) operation. Read more
source§

impl IndexMut<XYZEnum> for Point3f

source§

fn index_mut(&mut self, index: XYZEnum) -> &mut Float

Performs the mutable indexing (container[index]) operation. Read more
source§

impl<'a> Mul<f32> for &'a Point3f

§

type Output = Point3f

The resulting type after applying the * operator.
source§

fn mul(self, rhs: Float) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<f32> for Point3f

§

type Output = Point3f

The resulting type after applying the * operator.
source§

fn mul(self, rhs: Float) -> Self::Output

Performs the * operation. Read more
source§

impl MulAssign<f32> for Point3f

source§

fn mul_assign(&mut self, rhs: Float)

Performs the *= operation. Read more
source§

impl<'a, 'b> Sub<&'a Point3f> for &'b Point3f

§

type Output = Vector3f

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &Point3f) -> Self::Output

Performs the - operation. Read more
source§

impl<'a> Sub<&'a Point3f> for Point3f

§

type Output = Vector3f

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &Point3f) -> Self::Output

Performs the - operation. Read more
source§

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

§

type Output = Point3f

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &Vector3f) -> Self::Output

Performs the - operation. Read more
source§

impl<'a> Sub<&'a Vector3f> for Point3f

§

type Output = Point3f

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &Vector3f) -> Self::Output

Performs the - operation. Read more
source§

impl<'a> Sub<Point3f> for &'a Point3f

§

type Output = Vector3f

The resulting type after applying the - operator.
source§

fn sub(self, rhs: Point3f) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<Point3f> for Point3f

§

type Output = Vector3f

The resulting type after applying the - operator.
source§

fn sub(self, rhs: Point3f) -> Self::Output

Performs the - operation. Read more
source§

impl<'a> Sub<Vector3f> for &'a Point3f

§

type Output = Point3f

The resulting type after applying the - operator.
source§

fn sub(self, rhs: Vector3f) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<Vector3f> for Point3f

§

type Output = Point3f

The resulting type after applying the - operator.
source§

fn sub(self, rhs: Vector3f) -> Self::Output

Performs the - operation. Read more
source§

impl Copy for Point3f

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Pointable for T

source§

const ALIGN: usize = mem::align_of::<T>()

The alignment of pointer.
§

type Init = T

The type for initializers.
source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<R, P> ReadPrimitive<R> for Pwhere R: Read + ReadEndian<P>, P: Default,

source§

fn read_from_little_endian(read: &mut R) -> Result<Self, Error>

Read this value from the supplied reader. Same as ReadEndian::read_from_little_endian().
source§

fn read_from_big_endian(read: &mut R) -> Result<Self, Error>

Read this value from the supplied reader. Same as ReadEndian::read_from_big_endian().
source§

fn read_from_native_endian(read: &mut R) -> Result<Self, Error>

Read this value from the supplied reader. Same as ReadEndian::read_from_native_endian().
source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.