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
x: S
y: S
z: S
Methods
impl<S> Point3<S> where
S: BaseNum,
[src]
S: BaseNum,
impl<S> Point3<S> where
S: BaseNum,
[src]
S: BaseNum,
fn from_homogeneous(v: Vector4<S>) -> Point3<S>
[src]
fn to_homogeneous(self) -> Vector4<S>
[src]
impl<S> Point3<S> where
S: Copy + NumCast,
[src]
S: Copy + NumCast,
Trait Implementations
impl<S> Copy for Point3<S> where
S: Copy,
[src]
S: Copy,
impl<S> Hash for Point3<S> where
S: Hash,
[src]
S: Hash,
impl<S> Clone for Point3<S> where
S: Clone,
[src]
S: Clone,
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> MetricSpace for Point3<S> where
S: BaseFloat,
[src]
S: BaseFloat,
impl<'a, S> From<&'a [S; 3]> for &'a Point3<S>
[src]
impl<S> From<(S, S, S)> for Point3<S>
[src]
impl<'a, S> From<&'a (S, S, S)> for &'a Point3<S>
[src]
impl<'a, S> From<&'a mut (S, S, S)> for &'a mut Point3<S>
[src]
impl<S> From<[S; 3]> for Point3<S> where
S: Clone,
[src]
S: Clone,
impl<'a, S> From<&'a mut [S; 3]> for &'a mut Point3<S>
[src]
impl<S> PartialEq<Point3<S>> for Point3<S> where
S: PartialEq<S>,
[src]
S: PartialEq<S>,
fn eq(&self, __arg_0: &Point3<S>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Point3<S>) -> bool
[src]
This method tests for !=
.
impl<S> ApproxEq for Point3<S> where
S: BaseFloat,
[src]
S: BaseFloat,
type Epsilon = <S as ApproxEq>::Epsilon
fn default_epsilon() -> <S as ApproxEq>::Epsilon
[src]
fn default_max_relative() -> <S as ApproxEq>::Epsilon
[src]
fn default_max_ulps() -> u32
[src]
fn relative_eq(
&self,
other: &Point3<S>,
epsilon: <S as ApproxEq>::Epsilon,
max_relative: <S as ApproxEq>::Epsilon
) -> bool
[src]
&self,
other: &Point3<S>,
epsilon: <S as ApproxEq>::Epsilon,
max_relative: <S as ApproxEq>::Epsilon
) -> bool
fn ulps_eq(
&self,
other: &Point3<S>,
epsilon: <S as ApproxEq>::Epsilon,
max_ulps: u32
) -> bool
[src]
&self,
other: &Point3<S>,
epsilon: <S as ApproxEq>::Epsilon,
max_ulps: u32
) -> bool
impl<'a, 'b, S> Add<&'a Vector3<S>> for &'b Point3<S> where
S: BaseNum,
[src]
S: BaseNum,
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> Add<Vector3<S>> for Point3<S> where
S: BaseNum,
[src]
S: BaseNum,
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> Add<Vector3<S>> for &'a Point3<S> where
S: BaseNum,
[src]
S: BaseNum,
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> Add<&'a Vector3<S>> for Point3<S> where
S: BaseNum,
[src]
S: BaseNum,
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> Debug for Point3<S> where
S: Debug,
[src]
S: Debug,
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter.
impl<S> AddAssign<Vector3<S>> for Point3<S> where
S: BaseNum + AddAssign<S>,
[src]
S: BaseNum + AddAssign<S>,
fn add_assign(&mut self, vector: Vector3<S>)
[src]
impl<'a, S> Rem<S> for &'a Point3<S> where
S: BaseNum,
[src]
S: BaseNum,
impl<S> Rem<S> for Point3<S> where
S: BaseNum,
[src]
S: BaseNum,
impl<S> RemAssign<S> for Point3<S> where
S: BaseNum + RemAssign<S>,
[src]
S: BaseNum + RemAssign<S>,
fn rem_assign(&mut self, scalar: S)
[src]
impl<'de, S> Deserialize<'de> for Point3<S> where
S: Deserialize<'de>,
[src]
S: Deserialize<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<Point3<S>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
__deserializer: __D
) -> Result<Point3<S>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
impl<S> Into<(S, S, S)> for Point3<S>
[src]
impl<S> Into<[S; 3]> for Point3<S>
[src]
impl<S> EuclideanSpace for Point3<S> where
S: BaseNum,
[src]
S: BaseNum,
type Scalar = S
type Diff = Vector3<S>
fn origin() -> Point3<S>
[src]
fn from_vec(v: Vector3<S>) -> Point3<S>
[src]
fn to_vec(self) -> Vector3<S>
[src]
fn dot(self, v: Vector3<S>) -> S
[src]
impl<S> Index<usize> for Point3<S>
[src]
type Output = S
The returned type after indexing.
fn index(&'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 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 self, i: RangeTo<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 self, i: RangeFull) -> &'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 self, i: RangeFrom<usize>) -> &'a [S]
[src]
Performs the indexing (container[index]
) operation.
impl<'a, S> Div<S> for &'a Point3<S> where
S: BaseNum,
[src]
S: BaseNum,
impl<S> Div<S> for Point3<S> where
S: BaseNum,
[src]
S: BaseNum,
impl<S> Eq for Point3<S> where
S: Eq,
[src]
S: Eq,
impl<S> AsRef<[S; 3]> for Point3<S>
[src]
impl<S> AsRef<(S, S, S)> for Point3<S>
[src]
impl<S> AsMut<[S; 3]> for Point3<S>
[src]
impl<S> AsMut<(S, S, S)> for Point3<S>
[src]
impl<S> DivAssign<S> for Point3<S> where
S: BaseNum + DivAssign<S>,
[src]
S: BaseNum + DivAssign<S>,
fn div_assign(&mut self, scalar: S)
[src]
impl<S> Serialize for Point3<S> where
S: Serialize,
[src]
S: Serialize,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl<S> MulAssign<S> for Point3<S> where
S: BaseNum + MulAssign<S>,
[src]
S: BaseNum + MulAssign<S>,
fn mul_assign(&mut self, scalar: S)
[src]
impl<S> Mul<S> for Point3<S> where
S: BaseNum,
[src]
S: BaseNum,
impl<'a, S> Mul<S> for &'a Point3<S> where
S: BaseNum,
[src]
S: BaseNum,
impl<S> IndexMut<Range<usize>> for Point3<S>
[src]
fn index_mut(&'a mut self, i: Range<usize>) -> &'a mut [S]
[src]
impl<S> IndexMut<RangeTo<usize>> for Point3<S>
[src]
fn index_mut(&'a mut self, i: RangeTo<usize>) -> &'a mut [S]
[src]
impl<S> IndexMut<usize> for Point3<S>
[src]
impl<S> IndexMut<RangeFull> for Point3<S>
[src]
fn index_mut(&'a mut self, i: RangeFull) -> &'a mut [S]
[src]
impl<S> IndexMut<RangeFrom<usize>> for Point3<S>
[src]
fn index_mut(&'a mut self, i: RangeFrom<usize>) -> &'a mut [S]
[src]
impl<S> Array for Point3<S> where
S: BaseNum,
[src]
S: BaseNum,
type Element = S
fn from_value(scalar: S) -> Point3<S>
[src]
fn sum(self) -> S where
S: Add<S, Output = S>,
[src]
S: Add<S, Output = S>,
fn product(self) -> S where
S: Mul<S, Output = S>,
[src]
S: Mul<S, Output = S>,
impl<S> Sub<Point3<S>> for Point3<S> where
S: BaseNum,
[src]
S: BaseNum,
impl<'a, 'b, S> Sub<&'a Point3<S>> for &'b Point3<S> where
S: BaseNum,
[src]
S: BaseNum,
impl<'a, S> Sub<Point3<S>> for &'a Point3<S> where
S: BaseNum,
[src]
S: BaseNum,
impl<'a, S> Sub<&'a Point3<S>> for Point3<S> where
S: BaseNum,
[src]
S: BaseNum,
impl<S> Vertex for Point3<S> where
S: BaseNum,
[src]
S: BaseNum,
type Scalar = S
The values used to describe the vertex position.