Struct nalgebra::core::coordinates::XYZ
[−]
[src]
#[repr(C)]pub struct XYZ<N: Scalar> { pub x: N, pub y: N, pub z: N, }
Data structure used to provide access to matrix and vector coordinates with the dot
notation, e.g., v.x
is the same as v[0]
for a vector.
Fields
x: N
y: N
z: N
Trait Implementations
impl<N: Eq + Scalar> Eq for XYZ<N>
[src]
impl<N: PartialEq + Scalar> PartialEq for XYZ<N>
[src]
fn eq(&self, __arg_0: &XYZ<N>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &XYZ<N>) -> bool
This method tests for !=
.
impl<N: Clone + Scalar> Clone for XYZ<N>
[src]
fn clone(&self) -> XYZ<N>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl<N: Hash + Scalar> Hash for XYZ<N>
[src]
fn hash<__HN: Hasher>(&self, __arg_0: &mut __HN)
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
H: Hasher,
Feeds a slice of this type into the state provided.