Struct nannou::prelude::Point3 [] [src]

#[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

Methods

impl<S> Point3<S> where
    S: BaseNum
[src]

[src]

impl<S> Point3<S> where
    S: BaseNum
[src]

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

[src]

Component-wise casting to another type

Trait Implementations

impl<S> Copy for Point3<S> where
    S: Copy
[src]

impl<S> Hash for Point3<S> where
    S: Hash
[src]

[src]

impl<S> Clone for Point3<S> where
    S: Clone
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

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

[src]

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

[src]

Performs the conversion.

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

[src]

Performs the conversion.

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

[src]

Performs the conversion.

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

[src]

Performs the conversion.

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

[src]

Performs the conversion.

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

[src]

Performs the conversion.

impl<S> PartialEq<Point3<S>> for Point3<S> where
    S: PartialEq<S>, 
[src]

[src]

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

[src]

This method tests for !=.

impl<S> ApproxEq for Point3<S> where
    S: BaseFloat
[src]

[src]

[src]

[src]

[src]

[src]

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

The resulting type after applying the + operator.

[src]

Performs the + operation.

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

The resulting type after applying the + operator.

[src]

Performs the + operation.

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

The resulting type after applying the + operator.

[src]

Performs the + operation.

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

The resulting type after applying the + operator.

[src]

Performs the + operation.

impl<S> Debug for Point3<S> where
    S: Debug
[src]

[src]

Formats the value using the given formatter.

impl<S> AddAssign<Vector3<S>> for Point3<S> where
    S: BaseNum + AddAssign<S>, 
[src]

[src]

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

[src]

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

[src]

impl<S> RemAssign<S> for Point3<S> where
    S: BaseNum + RemAssign<S>, 
[src]

[src]

impl<'de, S> Deserialize<'de> for Point3<S> where
    S: Deserialize<'de>, 
[src]

[src]

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

[src]

Performs the conversion.

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

[src]

Performs the conversion.

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

[src]

[src]

[src]

[src]

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

The returned type after indexing.

[src]

Performs the indexing (container[index]) operation.

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

The returned type after indexing.

[src]

Performs the indexing (container[index]) operation.

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

The returned type after indexing.

[src]

Performs the indexing (container[index]) operation.

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

The returned type after indexing.

[src]

Performs the indexing (container[index]) operation.

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

The returned type after indexing.

[src]

Performs the indexing (container[index]) operation.

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

[src]

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

[src]

impl<S> Eq for Point3<S> where
    S: Eq
[src]

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

[src]

Performs the conversion.

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

[src]

Performs the conversion.

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

[src]

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

[src]

impl<S> DivAssign<S> for Point3<S> where
    S: BaseNum + DivAssign<S>, 
[src]

[src]

impl<S> Serialize for Point3<S> where
    S: Serialize
[src]

[src]

impl<S> MulAssign<S> for Point3<S> where
    S: BaseNum + MulAssign<S>, 
[src]

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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

[src]

[src]

[src]

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

[src]

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

[src]

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

[src]

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

[src]

impl<S> Vertex for Point3<S> where
    S: BaseNum
[src]

The values used to describe the vertex position.