Struct euclid::point::Point3D
[−]
[src]
pub struct Point3D<T> { pub x: T, pub y: T, pub z: T, }
Fields
x: T
y: T
z: T
Methods
impl<T: Zero> Point3D<T>
[src]
impl<T> Point3D<T>
[src]
impl<T: Mul<T, Output=T> + Add<T, Output=T> + Sub<T, Output=T> + Copy> Point3D<T>
[src]
Trait Implementations
impl<T: PartialEq> PartialEq for Point3D<T>
[src]
fn eq(&self, __arg_0: &Point3D<T>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Point3D<T>) -> bool
This method tests for !=
.
impl<T: Hash> Hash for Point3D<T>
[src]
fn hash<__HT: Hasher>(&self, __arg_0: &mut __HT)
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
Feeds a slice of this type into the state provided.
impl<T: Eq> Eq for Point3D<T>
[src]
impl<T: Encodable> Encodable for Point3D<T>
[src]
impl<T: Decodable> Decodable for Point3D<T>
[src]
impl<T: Copy> Copy for Point3D<T>
[src]
impl<T: Clone> Clone for Point3D<T>
[src]
fn clone(&self) -> Point3D<T>
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<T: Debug> Debug for Point3D<T>
[src]
impl<T: Display> Display for Point3D<T>
[src]
impl<T: Clone + Add<T, Output=T>> Add for Point3D<T>
[src]
type Output = Point3D<T>
The resulting type after applying the +
operator
fn add(self, other: Point3D<T>) -> Point3D<T>
The method for the +
operator
impl<T: Clone + Sub<T, Output=T>> Sub for Point3D<T>
[src]
type Output = Point3D<T>
The resulting type after applying the -
operator
fn sub(self, other: Point3D<T>) -> Point3D<T>
The method for the -
operator