# [−][src]Struct cgmath::Point3

    #[repr(C)]
    pub struct Point3<S> {
        pub x: S,
        pub y: S,
        pub z: S,
    }

A point in 3-dimensional space.

This type is marked as `#[repr(C)]`.

## Fields

`x: S` `y: S` `z: S`

## Methods

### `impl<S: BaseNum> Point3<S>`[src]

#### `pub fn from_homogeneous(v: Vector4<S>) -> Point3<S>`[src]

#### `pub fn to_homogeneous(self) -> Vector4<S>`[src]

### `impl<S> Point3<S>`[src]

#### `pub const fn new(x: S, y: S, z: S) -> Point3<S>`[src]

Construct a new point, using the provided values.

#### `pub fn map<U, F>(self, f: F) -> Point3<U> where
F: FnMut(S) -> U,` [src]

Perform the given operation on each field in the point, returning a new point constructed from the operations.

### `impl<S: NumCast + Copy> Point3<S>`[src]

#### `pub fn cast<T: NumCast>(&self) -> Option<Point3<T>>`[src]

Component-wise casting to another type

## Trait Implementations

### `impl<S: BaseNum> Array for Point3<S>`[src]

#### `type Element = S`

#### `fn len() -> usize`[src]

Get the number of elements in the array type Read more

#### `fn from_value(scalar: S) -> Point3<S>`[src]

Construct a vector from a single value, replicating it. Read more

#### `fn sum(self) -> S where
S: Add<Output = S>,` [src]

The sum of the elements of the array.

#### `fn product(self) -> S where
S: Mul<Output = S>,` [src]

The product of the elements of the array.

#### `fn is_finite(&self) -> bool where
S: BaseFloat,` [src]

Whether all elements of the array are finite

#### `fn as_ptr(&self) -> *const Self::Element`[src]

Get the pointer to the first element of the array.

#### `fn as_mut_ptr(&mut self) -> *mut Self::Element`[src]

Get a mutable pointer to the first element of the array.

#### `fn swap_elements(&mut self, i: usize, j: usize)`[src]

Swap the elements at indices `i` and `j` in-place.

### `impl<S: BaseNum> ElementWise<Point3<S>> for Point3<S>`[src]

#### `fn add_element_wise(self, rhs: Point3<S>) -> Point3<S>`[src]

#### `fn sub_element_wise(self, rhs: Point3<S>) -> Point3<S>`[src]

#### `fn mul_element_wise(self, rhs: Point3<S>) -> Point3<S>`[src]

#### `fn div_element_wise(self, rhs: Point3<S>) -> Point3<S>`[src]

#### `fn rem_element_wise(self, rhs: Point3<S>) -> Point3<S>`[src]

#### `fn add_assign_element_wise(&mut self, rhs: Point3<S>)`[src]

#### `fn sub_assign_element_wise(&mut self, rhs: Point3<S>)`[src]

#### `fn mul_assign_element_wise(&mut self, rhs: Point3<S>)`[src]

#### `fn div_assign_element_wise(&mut self, rhs: Point3<S>)`[src]

#### `fn rem_assign_element_wise(&mut self, rhs: Point3<S>)`[src]

### `impl<S: BaseNum> ElementWise<S> for Point3<S>`[src]

#### `fn add_element_wise(self, rhs: S) -> Point3<S>`[src]

#### `fn sub_element_wise(self, rhs: S) -> Point3<S>`[src]

#### `fn mul_element_wise(self, rhs: S) -> Point3<S>`[src]

#### `fn div_element_wise(self, rhs: S) -> Point3<S>`[src]

#### `fn rem_element_wise(self, rhs: S) -> Point3<S>`[src]

#### `fn add_assign_element_wise(&mut self, rhs: S)`[src]

#### `fn sub_assign_element_wise(&mut self, rhs: S)`[src]

#### `fn mul_assign_element_wise(&mut self, rhs: S)`[src]

#### `fn div_assign_element_wise(&mut self, rhs: S)`[src]

#### `fn rem_assign_element_wise(&mut self, rhs: S)`[src]

### `impl<S: BaseFloat> MetricSpace for Point3<S>`[src]

#### `type Metric = S`

The metric to be returned by the `distance` function.

#### `fn distance2(self, other: Self) -> S`[src]

Returns the squared distance. Read more

#### `fn distance(self, other: Self) -> Self::Metric`[src]

The distance between two values.

### `impl<S: BaseNum> EuclideanSpace for Point3<S>`[src]

#### `type Scalar = S`

The associated scalar over which the space is defined. Read more

#### `type Diff = Vector3<S>`

The associated space of displacement vectors.

#### `fn origin() -> Point3<S>`[src]

The point at the origin of the Euclidean space.

#### `fn from_vec(v: Vector3<S>) -> Point3<S>`[src]

Convert a displacement vector to a point. Read more

#### `fn to_vec(self) -> Vector3<S>`[src]

Convert a point to a displacement vector. Read more

#### `fn dot(self, v: Vector3<S>) -> S`[src]

This is a weird one, but its useful for plane calculations.

#### `fn midpoint(self, other: Self) -> Self`[src]

Returns the middle point between two other points. Read more

#### `fn centroid(points: &[Self]) -> Self`[src]

Returns the average position of all points in the slice. Read more

### `impl<S: BaseFloat> Rotation<Point3<S>> for Quaternion<S>`[src]

#### `fn look_at(dir: Vector3<S>, up: Vector3<S>) -> Quaternion<S>`[src]

Create a rotation to a given direction with an 'up' vector.

#### `fn between_vectors(a: Vector3<S>, b: Vector3<S>) -> Quaternion<S>`[src]

Create a shortest rotation to transform vector 'a' into 'b'. Both given vectors are assumed to have unit length. Read more

#### `fn rotate_vector(&self, vec: Vector3<S>) -> Vector3<S>`[src]

Rotate a vector using this rotation.

#### `fn invert(&self) -> Quaternion<S>`[src]

Create a new rotation which "un-does" this rotation. That is, `r * r.invert()` is the identity. Read more

#### `fn rotate_point(&self, point: P) -> P`[src]

Rotate a point using this rotation, by converting it to its representation as a vector. Read more

### `impl<S: BaseFloat> Rotation<Point3<S>> for Basis3<S>`[src]

#### `fn look_at(dir: Vector3<S>, up: Vector3<S>) -> Basis3<S>`[src]

Create a rotation to a given direction with an 'up' vector.

#### `fn between_vectors(a: Vector3<S>, b: Vector3<S>) -> Basis3<S>`[src]

Create a shortest rotation to transform vector 'a' into 'b'. Both given vectors are assumed to have unit length. Read more

#### `fn rotate_vector(&self, vec: Vector3<S>) -> Vector3<S>`[src]

Rotate a vector using this rotation.

#### `fn invert(&self) -> Basis3<S>`[src]

Create a new rotation which "un-does" this rotation. That is, `r * r.invert()` is the identity. Read more

#### `fn rotate_point(&self, point: P) -> P`[src]

Rotate a point using this rotation, by converting it to its representation as a vector. Read more

### `impl<S: BaseFloat> Transform<Point3<S>> for Matrix3<S>`[src]

#### `fn one() -> Matrix3<S>`[src]

Create an identity transformation. That is, a transformation which does nothing. Read more

#### `fn look_at(eye: Point3<S>, center: Point3<S>, up: Vector3<S>) -> Matrix3<S>`[src]

Create a transformation that rotates a vector to look at `center` from `eye`, using `up` for orientation. Read more

#### `fn transform_vector(&self, vec: Vector3<S>) -> Vector3<S>`[src]

Transform a vector using this transform.

#### `fn transform_point(&self, point: Point3<S>) -> Point3<S>`[src]

Transform a point using this transform.

#### `fn concat(&self, other: &Matrix3<S>) -> Matrix3<S>`[src]

Combine this transform with another, yielding a new transformation which has the effects of both. Read more

#### `fn inverse_transform(&self) -> Option<Matrix3<S>>`[src]

Create a transform that "un-does" this one.

#### `fn inverse_transform_vector(&self, vec: P::Diff) -> Option<P::Diff>`[src]

Inverse transform a vector using this transform

#### `fn concat_self(&mut self, other: &Self)`[src]

Combine this transform with another, in-place.

### `impl<S: BaseFloat> Transform<Point3<S>> for Matrix4<S>`[src]

#### `fn one() -> Matrix4<S>`[src]

Create an identity transformation. That is, a transformation which does nothing. Read more

#### `fn look_at(eye: Point3<S>, center: Point3<S>, up: Vector3<S>) -> Matrix4<S>`[src]

Create a transformation that rotates a vector to look at `center` from `eye`, using `up` for orientation. Read more

#### `fn transform_vector(&self, vec: Vector3<S>) -> Vector3<S>`[src]

Transform a vector using this transform.

#### `fn transform_point(&self, point: Point3<S>) -> Point3<S>`[src]

Transform a point using this transform.

#### `fn concat(&self, other: &Matrix4<S>) -> Matrix4<S>`[src]

Combine this transform with another, yielding a new transformation which has the effects of both. Read more

#### `fn inverse_transform(&self) -> Option<Matrix4<S>>`[src]

Create a transform that "un-does" this one.

#### `fn inverse_transform_vector(&self, vec: P::Diff) -> Option<P::Diff>`[src]

Inverse transform a vector using this transform

#### `fn concat_self(&mut self, other: &Self)`[src]

Combine this transform with another, in-place.

### `impl<S> Into<[S; 3]> for Point3<S>`[src]

#### `fn into(self) -> [S; 3]`[src]

Performs the conversion.

### `impl<S> Into<(S, S, S)> for Point3<S>`[src]

#### `fn into(self) -> (S, S, S)`[src]

Performs the conversion.

### `impl<S: Eq> Eq for Point3<S>`[src]

### `impl<S> AsMut<[S; 3]> for Point3<S>`[src]

#### `fn as_mut(&mut self) -> &mut [S; 3]`[src]

Performs the conversion.

### `impl<S> AsMut<(S, S, S)> for Point3<S>`[src]

#### `fn as_mut(&mut self) -> &mut (S, S, S)`[src]

Performs the conversion.

### `impl<S: Clone> Clone for Point3<S>`[src]

#### `fn clone(&self) -> Point3<S>`[src]

Returns a copy of the value. Read more

#### `fn clone_from(&mut self, source: &Self)`1.0.0[src]

Performs copy-assignment from `source`. Read more

### `impl<S> AsRef<[S; 3]> for Point3<S>`[src]

#### `fn as_ref(&self) -> &[S; 3]`[src]

Performs the conversion.

### `impl<S> AsRef<(S, S, S)> for Point3<S>`[src]

#### `fn as_ref(&self) -> &(S, S, S)`[src]

Performs the conversion.

### `impl<S: PartialEq> PartialEq<Point3<S>> for Point3<S>`[src]

#### `fn eq(&self, other: &Point3<S>) -> bool`[src]

This method tests for `self` and `other` values to be equal, and is used by `==`. Read more

#### `fn ne(&self, other: &Point3<S>) -> bool`[src]

This method tests for `!=`.

### `impl<S: Clone> From<[S; 3]> for Point3<S>`[src]

#### `fn from(v: [S; 3]) -> Point3<S>`[src]

Performs the conversion.

### `impl<'a, S> From<&'a [S; 3]> for &'a Point3<S>`[src]

#### `fn from(v: &'a [S; 3]) -> &'a Point3<S>`[src]

Performs the conversion.

### `impl<'a, S> From<&'a mut [S; 3]> for &'a mut Point3<S>`[src]

#### `fn from(v: &'a mut [S; 3]) -> &'a mut Point3<S>`[src]

Performs the conversion.

### `impl<S> From<(S, S, S)> for Point3<S>`[src]

#### `fn from(v: (S, S, S)) -> Point3<S>`[src]

Performs the conversion.

### `impl<'a, S> From<&'a (S, S, S)> for &'a Point3<S>`[src]

#### `fn from(v: &'a (S, S, S)) -> &'a Point3<S>`[src]

Performs the conversion.

### `impl<'a, S> From<&'a mut (S, S, S)> for &'a mut Point3<S>`[src]

#### `fn from(v: &'a mut (S, S, S)) -> &'a mut Point3<S>`[src]

Performs the conversion.

### `impl<S: Copy> Copy for Point3<S>`[src]

### `impl<S: Hash> Hash for Point3<S>`[src]

#### `fn hash<__H: Hasher>(&self, state: &mut __H)`[src]

Feeds this value into the given [`Hasher`]. Read more

#### `fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,` 1.3.0[src]

Feeds a slice of this type into the given [`Hasher`]. Read more

### `impl<S: BaseNum> Add<Vector3<S>> for Point3<S>`[src]

#### `type Output = Point3<S>`

The resulting type after applying the `+` operator.

#### `fn add(self, other: Vector3<S>) -> Point3<S>`[src]

Performs the `+` operation.

### `impl<'a, S: BaseNum> Add<&'a Vector3<S>> for Point3<S>`[src]

#### `type Output = Point3<S>`

The resulting type after applying the `+` operator.

#### `fn add(self, other: &'a Vector3<S>) -> Point3<S>`[src]

Performs the `+` operation.

### `impl<'a, S: BaseNum> Add<Vector3<S>> for &'a Point3<S>`[src]

#### `type Output = Point3<S>`

The resulting type after applying the `+` operator.

#### `fn add(self, other: Vector3<S>) -> Point3<S>`[src]

Performs the `+` operation.

### `impl<'a, 'b, S: BaseNum> Add<&'a Vector3<S>> for &'b Point3<S>`[src]

#### `type Output = Point3<S>`

The resulting type after applying the `+` operator.

#### `fn add(self, other: &'a Vector3<S>) -> Point3<S>`[src]

Performs the `+` operation.

### `impl<S: BaseNum> Sub<Vector3<S>> for Point3<S>`[src]

#### `type Output = Point3<S>`

The resulting type after applying the `-` operator.

#### `fn sub(self, other: Vector3<S>) -> Point3<S>`[src]

Performs the `-` operation.

### `impl<'a, S: BaseNum> Sub<&'a Vector3<S>> for Point3<S>`[src]

#### `type Output = Point3<S>`

The resulting type after applying the `-` operator.

#### `fn sub(self, other: &'a Vector3<S>) -> Point3<S>`[src]

Performs the `-` operation.

### `impl<'a, S: BaseNum> Sub<Vector3<S>> for &'a Point3<S>`[src]

#### `type Output = Point3<S>`

The resulting type after applying the `-` operator.

#### `fn sub(self, other: Vector3<S>) -> Point3<S>`[src]

Performs the `-` operation.

### `impl<'a, 'b, S: BaseNum> Sub<&'a Vector3<S>> for &'b Point3<S>`[src]

#### `type Output = Point3<S>`

The resulting type after applying the `-` operator.

#### `fn sub(self, other: &'a Vector3<S>) -> Point3<S>`[src]

Performs the `-` operation.

### `impl<S: BaseNum> Sub<Point3<S>> for Point3<S>`[src]

#### `type Output = Vector3<S>`

The resulting type after applying the `-` operator.

#### `fn sub(self, other: Point3<S>) -> Vector3<S>`[src]

Performs the `-` operation.

### `impl<'a, S: BaseNum> Sub<&'a Point3<S>> for Point3<S>`[src]

#### `type Output = Vector3<S>`

The resulting type after applying the `-` operator.

#### `fn sub(self, other: &'a Point3<S>) -> Vector3<S>`[src]

Performs the `-` operation.

### `impl<'a, S: BaseNum> Sub<Point3<S>> for &'a Point3<S>`[src]

#### `type Output = Vector3<S>`

The resulting type after applying the `-` operator.

#### `fn sub(self, other: Point3<S>) -> Vector3<S>`[src]

Performs the `-` operation.

### `impl<'a, 'b, S: BaseNum> Sub<&'a Point3<S>> for &'b Point3<S>`[src]

#### `type Output = Vector3<S>`

The resulting type after applying the `-` operator.

#### `fn sub(self, other: &'a Point3<S>) -> Vector3<S>`[src]

Performs the `-` operation.

### `impl<S: BaseNum> Mul<S> for Point3<S>`[src]

#### `type Output = Point3<S>`

The resulting type after applying the `*` operator.

#### `fn mul(self, other: S) -> Point3<S>`[src]

Performs the `*` operation.

### `impl<'a, S: BaseNum> Mul<S> for &'a Point3<S>`[src]

#### `type Output = Point3<S>`

The resulting type after applying the `*` operator.

#### `fn mul(self, other: S) -> Point3<S>`[src]

Performs the `*` operation.

### `impl Mul<Point3<usize>> for usize`[src]

#### `type Output = Point3<usize>`

The resulting type after applying the `*` operator.

#### `fn mul(self, other: Point3<usize>) -> Point3<usize>`[src]

Performs the `*` operation.

### `impl<'a> Mul<&'a Point3<usize>> for usize`[src]

#### `type Output = Point3<usize>`

The resulting type after applying the `*` operator.

#### `fn mul(self, other: &'a Point3<usize>) -> Point3<usize>`[src]

Performs the `*` operation.

### `impl Mul<Point3<u8>> for u8`[src]

#### `type Output = Point3<u8>`

The resulting type after applying the `*` operator.

#### `fn mul(self, other: Point3<u8>) -> Point3<u8>`[src]

Performs the `*` operation.

### `impl<'a> Mul<&'a Point3<u8>> for u8`[src]

#### `type Output = Point3<u8>`

The resulting type after applying the `*` operator.

#### `fn mul(self, other: &'a Point3<u8>) -> Point3<u8>`[src]

Performs the `*` operation.

### `impl Mul<Point3<u16>> for u16`[src]

#### `type Output = Point3<u16>`

The resulting type after applying the `*` operator.

#### `fn mul(self, other: Point3<u16>) -> Point3<u16>`[src]

Performs the `*` operation.

### `impl<'a> Mul<&'a Point3<u16>> for u16`[src]

#### `type Output = Point3<u16>`

The resulting type after applying the `*` operator.

#### `fn mul(self, other: &'a Point3<u16>) -> Point3<u16>`[src]

Performs the `*` operation.

### `impl Mul<Point3<u32>> for u32`[src]

#### `type Output = Point3<u32>`

The resulting type after applying the `*` operator.

#### `fn mul(self, other: Point3<u32>) -> Point3<u32>`[src]

Performs the `*` operation.

### `impl<'a> Mul<&'a Point3<u32>> for u32`[src]

#### `type Output = Point3<u32>`

The resulting type after applying the `*` operator.

#### `fn mul(self, other: &'a Point3<u32>) -> Point3<u32>`[src]

Performs the `*` operation.

### `impl Mul<Point3<u64>> for u64`[src]

#### `type Output = Point3<u64>`

The resulting type after applying the `*` operator.

#### `fn mul(self, other: Point3<u64>) -> Point3<u64>`[src]

Performs the `*` operation.

### `impl<'a> Mul<&'a Point3<u64>> for u64`[src]

#### `type Output = Point3<u64>`

The resulting type after applying the `*` operator.

#### `fn mul(self, other: &'a Point3<u64>) -> Point3<u64>`[src]

Performs the `*` operation.

### `impl Mul<Point3<isize>> for isize`[src]

#### `type Output = Point3<isize>`

The resulting type after applying the `*` operator.

#### `fn mul(self, other: Point3<isize>) -> Point3<isize>`[src]

Performs the `*` operation.

### `impl<'a> Mul<&'a Point3<isize>> for isize`[src]

#### `type Output = Point3<isize>`

The resulting type after applying the `*` operator.

#### `fn mul(self, other: &'a Point3<isize>) -> Point3<isize>`[src]

Performs the `*` operation.

### `impl Mul<Point3<i8>> for i8`[src]

#### `type Output = Point3<i8>`

The resulting type after applying the `*` operator.

#### `fn mul(self, other: Point3<i8>) -> Point3<i8>`[src]

Performs the `*` operation.

### `impl<'a> Mul<&'a Point3<i8>> for i8`[src]

#### `type Output = Point3<i8>`

The resulting type after applying the `*` operator.

#### `fn mul(self, other: &'a Point3<i8>) -> Point3<i8>`[src]

Performs the `*` operation.

### `impl Mul<Point3<i16>> for i16`[src]

#### `type Output = Point3<i16>`

The resulting type after applying the `*` operator.

#### `fn mul(self, other: Point3<i16>) -> Point3<i16>`[src]

Performs the `*` operation.

### `impl<'a> Mul<&'a Point3<i16>> for i16`[src]

#### `type Output = Point3<i16>`

The resulting type after applying the `*` operator.

#### `fn mul(self, other: &'a Point3<i16>) -> Point3<i16>`[src]

Performs the `*` operation.

### `impl Mul<Point3<i32>> for i32`[src]

#### `type Output = Point3<i32>`

The resulting type after applying the `*` operator.

#### `fn mul(self, other: Point3<i32>) -> Point3<i32>`[src]

Performs the `*` operation.

### `impl<'a> Mul<&'a Point3<i32>> for i32`[src]

#### `type Output = Point3<i32>`

The resulting type after applying the `*` operator.

#### `fn mul(self, other: &'a Point3<i32>) -> Point3<i32>`[src]

Performs the `*` operation.

### `impl Mul<Point3<i64>> for i64`[src]

#### `type Output = Point3<i64>`

The resulting type after applying the `*` operator.

#### `fn mul(self, other: Point3<i64>) -> Point3<i64>`[src]

Performs the `*` operation.

### `impl<'a> Mul<&'a Point3<i64>> for i64`[src]

#### `type Output = Point3<i64>`

The resulting type after applying the `*` operator.

#### `fn mul(self, other: &'a Point3<i64>) -> Point3<i64>`[src]

Performs the `*` operation.

### `impl Mul<Point3<f32>> for f32`[src]

#### `type Output = Point3<f32>`

The resulting type after applying the `*` operator.

#### `fn mul(self, other: Point3<f32>) -> Point3<f32>`[src]

Performs the `*` operation.

### `impl<'a> Mul<&'a Point3<f32>> for f32`[src]

#### `type Output = Point3<f32>`

The resulting type after applying the `*` operator.

#### `fn mul(self, other: &'a Point3<f32>) -> Point3<f32>`[src]

Performs the `*` operation.

### `impl Mul<Point3<f64>> for f64`[src]

#### `type Output = Point3<f64>`

The resulting type after applying the `*` operator.

#### `fn mul(self, other: Point3<f64>) -> Point3<f64>`[src]

Performs the `*` operation.

### `impl<'a> Mul<&'a Point3<f64>> for f64`[src]

#### `type Output = Point3<f64>`

The resulting type after applying the `*` operator.

#### `fn mul(self, other: &'a Point3<f64>) -> Point3<f64>`[src]

Performs the `*` operation.

### `impl<S: BaseNum> Div<S> for Point3<S>`[src]

#### `type Output = Point3<S>`

The resulting type after applying the `/` operator.

#### `fn div(self, other: S) -> Point3<S>`[src]

Performs the `/` operation.

### `impl<'a, S: BaseNum> Div<S> for &'a Point3<S>`[src]

#### `type Output = Point3<S>`

The resulting type after applying the `/` operator.

#### `fn div(self, other: S) -> Point3<S>`[src]

Performs the `/` operation.

### `impl Div<Point3<usize>> for usize`[src]

#### `type Output = Point3<usize>`

The resulting type after applying the `/` operator.

#### `fn div(self, other: Point3<usize>) -> Point3<usize>`[src]

Performs the `/` operation.

### `impl<'a> Div<&'a Point3<usize>> for usize`[src]

#### `type Output = Point3<usize>`

The resulting type after applying the `/` operator.

#### `fn div(self, other: &'a Point3<usize>) -> Point3<usize>`[src]

Performs the `/` operation.

### `impl Div<Point3<u8>> for u8`[src]

#### `type Output = Point3<u8>`

The resulting type after applying the `/` operator.

#### `fn div(self, other: Point3<u8>) -> Point3<u8>`[src]

Performs the `/` operation.

### `impl<'a> Div<&'a Point3<u8>> for u8`[src]

#### `type Output = Point3<u8>`

The resulting type after applying the `/` operator.

#### `fn div(self, other: &'a Point3<u8>) -> Point3<u8>`[src]

Performs the `/` operation.

### `impl Div<Point3<u16>> for u16`[src]

#### `type Output = Point3<u16>`

The resulting type after applying the `/` operator.

#### `fn div(self, other: Point3<u16>) -> Point3<u16>`[src]

Performs the `/` operation.

### `impl<'a> Div<&'a Point3<u16>> for u16`[src]

#### `type Output = Point3<u16>`

The resulting type after applying the `/` operator.

#### `fn div(self, other: &'a Point3<u16>) -> Point3<u16>`[src]

Performs the `/` operation.

### `impl Div<Point3<u32>> for u32`[src]

#### `type Output = Point3<u32>`

The resulting type after applying the `/` operator.

#### `fn div(self, other: Point3<u32>) -> Point3<u32>`[src]

Performs the `/` operation.

### `impl<'a> Div<&'a Point3<u32>> for u32`[src]

#### `type Output = Point3<u32>`

The resulting type after applying the `/` operator.

#### `fn div(self, other: &'a Point3<u32>) -> Point3<u32>`[src]

Performs the `/` operation.

### `impl Div<Point3<u64>> for u64`[src]

#### `type Output = Point3<u64>`

The resulting type after applying the `/` operator.

#### `fn div(self, other: Point3<u64>) -> Point3<u64>`[src]

Performs the `/` operation.

### `impl<'a> Div<&'a Point3<u64>> for u64`[src]

#### `type Output = Point3<u64>`

The resulting type after applying the `/` operator.

#### `fn div(self, other: &'a Point3<u64>) -> Point3<u64>`[src]

Performs the `/` operation.

### `impl Div<Point3<isize>> for isize`[src]

#### `type Output = Point3<isize>`

The resulting type after applying the `/` operator.

#### `fn div(self, other: Point3<isize>) -> Point3<isize>`[src]

Performs the `/` operation.

### `impl<'a> Div<&'a Point3<isize>> for isize`[src]

#### `type Output = Point3<isize>`

The resulting type after applying the `/` operator.

#### `fn div(self, other: &'a Point3<isize>) -> Point3<isize>`[src]

Performs the `/` operation.

### `impl Div<Point3<i8>> for i8`[src]

#### `type Output = Point3<i8>`

The resulting type after applying the `/` operator.

#### `fn div(self, other: Point3<i8>) -> Point3<i8>`[src]

Performs the `/` operation.

### `impl<'a> Div<&'a Point3<i8>> for i8`[src]

#### `type Output = Point3<i8>`

The resulting type after applying the `/` operator.

#### `fn div(self, other: &'a Point3<i8>) -> Point3<i8>`[src]

Performs the `/` operation.

### `impl Div<Point3<i16>> for i16`[src]

#### `type Output = Point3<i16>`

The resulting type after applying the `/` operator.

#### `fn div(self, other: Point3<i16>) -> Point3<i16>`[src]

Performs the `/` operation.

### `impl<'a> Div<&'a Point3<i16>> for i16`[src]

#### `type Output = Point3<i16>`

The resulting type after applying the `/` operator.

#### `fn div(self, other: &'a Point3<i16>) -> Point3<i16>`[src]

Performs the `/` operation.

### `impl Div<Point3<i32>> for i32`[src]

#### `type Output = Point3<i32>`

The resulting type after applying the `/` operator.

#### `fn div(self, other: Point3<i32>) -> Point3<i32>`[src]

Performs the `/` operation.

### `impl<'a> Div<&'a Point3<i32>> for i32`[src]

#### `type Output = Point3<i32>`

The resulting type after applying the `/` operator.

#### `fn div(self, other: &'a Point3<i32>) -> Point3<i32>`[src]

Performs the `/` operation.

### `impl Div<Point3<i64>> for i64`[src]

#### `type Output = Point3<i64>`

The resulting type after applying the `/` operator.

#### `fn div(self, other: Point3<i64>) -> Point3<i64>`[src]

Performs the `/` operation.

### `impl<'a> Div<&'a Point3<i64>> for i64`[src]

#### `type Output = Point3<i64>`

The resulting type after applying the `/` operator.

#### `fn div(self, other: &'a Point3<i64>) -> Point3<i64>`[src]

Performs the `/` operation.

### `impl Div<Point3<f32>> for f32`[src]

#### `type Output = Point3<f32>`

The resulting type after applying the `/` operator.

#### `fn div(self, other: Point3<f32>) -> Point3<f32>`[src]

Performs the `/` operation.

### `impl<'a> Div<&'a Point3<f32>> for f32`[src]

#### `type Output = Point3<f32>`

The resulting type after applying the `/` operator.

#### `fn div(self, other: &'a Point3<f32>) -> Point3<f32>`[src]

Performs the `/` operation.

### `impl Div<Point3<f64>> for f64`[src]

#### `type Output = Point3<f64>`

The resulting type after applying the `/` operator.

#### `fn div(self, other: Point3<f64>) -> Point3<f64>`[src]

Performs the `/` operation.

### `impl<'a> Div<&'a Point3<f64>> for f64`[src]

#### `type Output = Point3<f64>`

The resulting type after applying the `/` operator.

#### `fn div(self, other: &'a Point3<f64>) -> Point3<f64>`[src]

Performs the `/` operation.

### `impl<S: BaseNum> Rem<S> for Point3<S>`[src]

#### `type Output = Point3<S>`

The resulting type after applying the `%` operator.

#### `fn rem(self, other: S) -> Point3<S>`[src]

Performs the `%` operation.

### `impl<'a, S: BaseNum> Rem<S> for &'a Point3<S>`[src]

#### `type Output = Point3<S>`

The resulting type after applying the `%` operator.

#### `fn rem(self, other: S) -> Point3<S>`[src]

Performs the `%` operation.

### `impl Rem<Point3<usize>> for usize`[src]

#### `type Output = Point3<usize>`

The resulting type after applying the `%` operator.

#### `fn rem(self, other: Point3<usize>) -> Point3<usize>`[src]

Performs the `%` operation.

### `impl<'a> Rem<&'a Point3<usize>> for usize`[src]

#### `type Output = Point3<usize>`

The resulting type after applying the `%` operator.

#### `fn rem(self, other: &'a Point3<usize>) -> Point3<usize>`[src]

Performs the `%` operation.

### `impl Rem<Point3<u8>> for u8`[src]

#### `type Output = Point3<u8>`

The resulting type after applying the `%` operator.

#### `fn rem(self, other: Point3<u8>) -> Point3<u8>`[src]

Performs the `%` operation.

### `impl<'a> Rem<&'a Point3<u8>> for u8`[src]

#### `type Output = Point3<u8>`

The resulting type after applying the `%` operator.

#### `fn rem(self, other: &'a Point3<u8>) -> Point3<u8>`[src]

Performs the `%` operation.

### `impl Rem<Point3<u16>> for u16`[src]

#### `type Output = Point3<u16>`

The resulting type after applying the `%` operator.

#### `fn rem(self, other: Point3<u16>) -> Point3<u16>`[src]

Performs the `%` operation.

### `impl<'a> Rem<&'a Point3<u16>> for u16`[src]

#### `type Output = Point3<u16>`

The resulting type after applying the `%` operator.

#### `fn rem(self, other: &'a Point3<u16>) -> Point3<u16>`[src]

Performs the `%` operation.

### `impl Rem<Point3<u32>> for u32`[src]

#### `type Output = Point3<u32>`

The resulting type after applying the `%` operator.

#### `fn rem(self, other: Point3<u32>) -> Point3<u32>`[src]

Performs the `%` operation.

### `impl<'a> Rem<&'a Point3<u32>> for u32`[src]

#### `type Output = Point3<u32>`

The resulting type after applying the `%` operator.

#### `fn rem(self, other: &'a Point3<u32>) -> Point3<u32>`[src]

Performs the `%` operation.

### `impl Rem<Point3<u64>> for u64`[src]

#### `type Output = Point3<u64>`

The resulting type after applying the `%` operator.

#### `fn rem(self, other: Point3<u64>) -> Point3<u64>`[src]

Performs the `%` operation.

### `impl<'a> Rem<&'a Point3<u64>> for u64`[src]

#### `type Output = Point3<u64>`

The resulting type after applying the `%` operator.

#### `fn rem(self, other: &'a Point3<u64>) -> Point3<u64>`[src]

Performs the `%` operation.

### `impl Rem<Point3<isize>> for isize`[src]

#### `type Output = Point3<isize>`

The resulting type after applying the `%` operator.

#### `fn rem(self, other: Point3<isize>) -> Point3<isize>`[src]

Performs the `%` operation.

### `impl<'a> Rem<&'a Point3<isize>> for isize`[src]

#### `type Output = Point3<isize>`

The resulting type after applying the `%` operator.

#### `fn rem(self, other: &'a Point3<isize>) -> Point3<isize>`[src]

Performs the `%` operation.

### `impl Rem<Point3<i8>> for i8`[src]

#### `type Output = Point3<i8>`

The resulting type after applying the `%` operator.

#### `fn rem(self, other: Point3<i8>) -> Point3<i8>`[src]

Performs the `%` operation.

### `impl<'a> Rem<&'a Point3<i8>> for i8`[src]

#### `type Output = Point3<i8>`

The resulting type after applying the `%` operator.

#### `fn rem(self, other: &'a Point3<i8>) -> Point3<i8>`[src]

Performs the `%` operation.

### `impl Rem<Point3<i16>> for i16`[src]

#### `type Output = Point3<i16>`

The resulting type after applying the `%` operator.

#### `fn rem(self, other: Point3<i16>) -> Point3<i16>`[src]

Performs the `%` operation.

### `impl<'a> Rem<&'a Point3<i16>> for i16`[src]

#### `type Output = Point3<i16>`

The resulting type after applying the `%` operator.

#### `fn rem(self, other: &'a Point3<i16>) -> Point3<i16>`[src]

Performs the `%` operation.

### `impl Rem<Point3<i32>> for i32`[src]

#### `type Output = Point3<i32>`

The resulting type after applying the `%` operator.

#### `fn rem(self, other: Point3<i32>) -> Point3<i32>`[src]

Performs the `%` operation.

### `impl<'a> Rem<&'a Point3<i32>> for i32`[src]

#### `type Output = Point3<i32>`

The resulting type after applying the `%` operator.

#### `fn rem(self, other: &'a Point3<i32>) -> Point3<i32>`[src]

Performs the `%` operation.

### `impl Rem<Point3<i64>> for i64`[src]

#### `type Output = Point3<i64>`

The resulting type after applying the `%` operator.

#### `fn rem(self, other: Point3<i64>) -> Point3<i64>`[src]

Performs the `%` operation.

### `impl<'a> Rem<&'a Point3<i64>> for i64`[src]

#### `type Output = Point3<i64>`

The resulting type after applying the `%` operator.

#### `fn rem(self, other: &'a Point3<i64>) -> Point3<i64>`[src]

Performs the `%` operation.

### `impl Rem<Point3<f32>> for f32`[src]

#### `type Output = Point3<f32>`

The resulting type after applying the `%` operator.

#### `fn rem(self, other: Point3<f32>) -> Point3<f32>`[src]

Performs the `%` operation.

### `impl<'a> Rem<&'a Point3<f32>> for f32`[src]

#### `type Output = Point3<f32>`

The resulting type after applying the `%` operator.

#### `fn rem(self, other: &'a Point3<f32>) -> Point3<f32>`[src]

Performs the `%` operation.

### `impl Rem<Point3<f64>> for f64`[src]

#### `type Output = Point3<f64>`

The resulting type after applying the `%` operator.

#### `fn rem(self, other: Point3<f64>) -> Point3<f64>`[src]

Performs the `%` operation.

### `impl<'a> Rem<&'a Point3<f64>> for f64`[src]

#### `type Output = Point3<f64>`

The resulting type after applying the `%` operator.

#### `fn rem(self, other: &'a Point3<f64>) -> Point3<f64>`[src]

Performs the `%` operation.

### `impl<S: BaseNum + AddAssign<S>> AddAssign<Vector3<S>> for Point3<S>`[src]

#### `fn add_assign(&mut self, vector: Vector3<S>)`[src]

Performs the `+=` operation.

### `impl<S: BaseNum + SubAssign<S>> SubAssign<Vector3<S>> for Point3<S>`[src]

#### `fn sub_assign(&mut self, vector: Vector3<S>)`[src]

Performs the `-=` operation.

### `impl<S: BaseNum + MulAssign<S>> MulAssign<S> for Point3<S>`[src]

#### `fn mul_assign(&mut self, scalar: S)`[src]

Performs the `*=` operation.

### `impl<S: BaseNum + DivAssign<S>> DivAssign<S> for Point3<S>`[src]

#### `fn div_assign(&mut self, scalar: S)`[src]

Performs the `/=` operation.

### `impl<S: BaseNum + RemAssign<S>> RemAssign<S> for Point3<S>`[src]

#### `fn rem_assign(&mut self, scalar: S)`[src]

Performs the `%=` operation.

### `impl<S> Index<usize> for Point3<S>`[src]

#### `type Output = S`

The returned type after indexing.

#### `fn index<'a>(&'a self, i: usize) -> &'a S`[src]

Performs the indexing (`container[index]`) operation.

### `impl<S> Index<Range<usize>> for Point3<S>`[src]

#### `type Output = [S]`

The returned type after indexing.

#### `fn index<'a>(&'a self, i: Range<usize>) -> &'a [S]`[src]

Performs the indexing (`container[index]`) operation.

### `impl<S> Index<RangeTo<usize>> for Point3<S>`[src]

#### `type Output = [S]`

The returned type after indexing.

#### `fn index<'a>(&'a self, i: RangeTo<usize>) -> &'a [S]`[src]

Performs the indexing (`container[index]`) operation.

### `impl<S> Index<RangeFrom<usize>> for Point3<S>`[src]

#### `type Output = [S]`

The returned type after indexing.

#### `fn index<'a>(&'a self, i: RangeFrom<usize>) -> &'a [S]`[src]

Performs the indexing (`container[index]`) operation.

### `impl<S> Index<RangeFull> for Point3<S>`[src]

#### `type Output = [S]`

The returned type after indexing.

#### `fn index<'a>(&'a self, i: RangeFull) -> &'a [S]`[src]

Performs the indexing (`container[index]`) operation.

### `impl<S> IndexMut<usize> for Point3<S>`[src]

#### `fn index_mut<'a>(&'a mut self, i: usize) -> &'a mut S`[src]

Performs the mutable indexing (`container[index]`) operation.

### `impl<S> IndexMut<Range<usize>> for Point3<S>`[src]

#### `fn index_mut<'a>(&'a mut self, i: Range<usize>) -> &'a mut [S]`[src]

Performs the mutable indexing (`container[index]`) operation.

### `impl<S> IndexMut<RangeTo<usize>> for Point3<S>`[src]

#### `fn index_mut<'a>(&'a mut self, i: RangeTo<usize>) -> &'a mut [S]`[src]

Performs the mutable indexing (`container[index]`) operation.

### `impl<S> IndexMut<RangeFrom<usize>> for Point3<S>`[src]

#### `fn index_mut<'a>(&'a mut self, i: RangeFrom<usize>) -> &'a mut [S]`[src]

Performs the mutable indexing (`container[index]`) operation.

### `impl<S> IndexMut<RangeFull> for Point3<S>`[src]

#### `fn index_mut<'a>(&'a mut self, i: RangeFull) -> &'a mut [S]`[src]

Performs the mutable indexing (`container[index]`) operation.

### `impl<S: Debug> Debug for Point3<S>`[src]

#### `fn fmt(&self, f: &mut Formatter) -> Result`[src]

Formats the value using the given formatter. Read more

### `impl<S: BaseFloat> AbsDiffEq<Point3<S>> for Point3<S>`[src]

#### `type Epsilon = S::Epsilon`

Used for specifying relative comparisons.

#### `fn default_epsilon() -> S::Epsilon`[src]

The default tolerance to use when testing values that are close together. Read more

#### `fn abs_diff_eq(&self, other: &Self, epsilon: S::Epsilon) -> bool`[src]

A test for equality that uses the absolute difference to compute the approximate equality of two numbers. Read more

#### `fn abs_diff_ne(&self, other: &Rhs, epsilon: Self::Epsilon) -> bool`[src]

The inverse of `ApproxEq::abs_diff_eq`.

### `impl<S: BaseFloat> RelativeEq<Point3<S>> for Point3<S>`[src]

#### `fn default_max_relative() -> S::Epsilon`[src]

The default relative tolerance for testing values that are far-apart. Read more

#### `fn relative_eq(
&self,
other: &Self,
epsilon: S::Epsilon,
max_relative: S::Epsilon
) -> bool`[src]

A test for equality that uses a relative comparison if the values are far apart.

#### `fn relative_ne(
&self,
other: &Rhs,
epsilon: Self::Epsilon,
max_relative: Self::Epsilon
) -> bool`[src]

The inverse of `ApproxEq::relative_eq`.

### `impl<S: BaseFloat> UlpsEq<Point3<S>> for Point3<S>`[src]

#### `fn default_max_ulps() -> u32`[src]

The default ULPs to tolerate when testing values that are far-apart. Read more

#### `fn ulps_eq(&self, other: &Self, epsilon: S::Epsilon, max_ulps: u32) -> bool`[src]

A test for equality that uses units in the last place (ULP) if the values are far apart.

#### `fn ulps_ne(&self, other: &Rhs, epsilon: Self::Epsilon, max_ulps: u32) -> bool`[src]

The inverse of `ApproxEq::ulps_eq`.

### `impl<S: Bounded> Bounded for Point3<S>`[src]

#### `fn min_value() -> Point3<S>`[src]

returns the smallest finite number this type can represent

#### `fn max_value() -> Point3<S>`[src]

returns the largest finite number this type can represent

## Auto Trait Implementations

### `impl<S> Send for Point3<S> where
S: Send,`

### `impl<S> Unpin for Point3<S> where
S: Unpin,`

### `impl<S> Sync for Point3<S> where
S: Sync,`

### `impl<S> UnwindSafe for Point3<S> where
S: UnwindSafe,`

### `impl<S> RefUnwindSafe for Point3<S> where
S: RefUnwindSafe,`

## Blanket Implementations

### `impl<T> ToOwned for T where
T: Clone,` [src]

#### `type Owned = T`

The resulting type after obtaining ownership.

#### `fn to_owned(&self) -> T`[src]

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

#### `fn clone_into(&self, target: &mut T)`[src]

🔬 This is a nightly-only experimental API. (`toowned_clone_into`)

recently added

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

### `impl<T, U> Into<U> for T where
U: From<T>,` [src]

#### `fn into(self) -> U`[src]

Performs the conversion.

### `impl<T> From<T> for T`[src]

#### `fn from(t: T) -> T`[src]

Performs the conversion.

### `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.

#### `fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>`[src]

Performs the conversion.

### `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.

#### `fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>`[src]

Performs the conversion.

### `impl<T> BorrowMut<T> for T where
T: ?Sized,` [src]

#### `fn borrow_mut(&mut self) -> &mut T`[src]

Mutably borrows from an owned value. Read more

### `impl<T> Borrow<T> for T where
T: ?Sized,` [src]

#### `fn borrow(&self) -> &T`[src]

Immutably borrows from an owned value. Read more

### `impl<T> Any for T where
T: 'static + ?Sized,` [src]

#### `fn type_id(&self) -> TypeId`[src]

Gets the `TypeId` of `self`. Read more

### `impl<T, Rhs, Output> NumOps<Rhs, Output> for T where
T: Sub<Rhs, Output = Output> + Mul<Rhs, Output = Output> + Div<Rhs, Output = Output> + Add<Rhs, Output = Output> + Rem<Rhs, Output = Output>,` [src]

### `impl<T, Rhs> NumAssignOps<Rhs> for T where
T: AddAssign<Rhs> + SubAssign<Rhs> + MulAssign<Rhs> + DivAssign<Rhs> + RemAssign<Rhs>,` [src]

# Help

## Keyboard Shortcuts

`?`
  Show this help dialog
`S`
  Focus the search field
`↑`
  Move up in search results
`↓`
  Move down in search results
`↹`
  Switch tab
`⏎`
  Go to active search result
`+`
  Expand all sections
`-`
  Collapse all sections

## Search Tricks

Prefix searches with a type followed by a colon (e.g., `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g., `vec -> usize` or `* -> vec`)

Search multiple things at once by splitting your query with comma (e.g., `str,u8` or `String,struct:Vec,test`)