[−][src]Struct euclid::HomogeneousVector
Homogeneous vector in 3D space.
Fields
x: T
y: T
z: T
w: T
Methods
impl<T, U> HomogeneousVector<T, U>
[src]
impl<T: Copy + Div<T, Output = T> + Zero + PartialOrd, U> HomogeneousVector<T, U>
[src]
pub fn to_point2d(&self) -> Option<TypedPoint2D<T, U>>
[src]
Convert into Cartesian 2D point.
Returns None if the point is on or behind the W=0 hemisphere.
pub fn to_point3d(&self) -> Option<TypedPoint3D<T, U>>
[src]
Convert into Cartesian 3D point.
Returns None if the point is on or behind the W=0 hemisphere.
Trait Implementations
impl<T, U> PartialEq<HomogeneousVector<T, U>> for HomogeneousVector<T, U> where
T: PartialEq,
[src]
T: PartialEq,
fn eq(&self, other: &Self) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl<T, U> Eq for HomogeneousVector<T, U> where
T: Eq,
[src]
T: Eq,
impl<T, U> Hash for HomogeneousVector<T, U> where
T: Hash,
[src]
T: Hash,
fn hash<H: Hasher>(&self, h: &mut H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl<T: Display, U> Display for HomogeneousVector<T, U>
[src]
impl<T: Debug, U> Debug for HomogeneousVector<T, U>
[src]
impl<T, U> Copy for HomogeneousVector<T, U> where
T: Copy,
[src]
T: Copy,
impl<T: Zero, U> From<TypedVector2D<T, U>> for HomogeneousVector<T, U>
[src]
fn from(v: TypedVector2D<T, U>) -> Self
[src]
impl<T: Zero, U> From<TypedVector3D<T, U>> for HomogeneousVector<T, U>
[src]
fn from(v: TypedVector3D<T, U>) -> Self
[src]
impl<T: Zero + One, U> From<TypedPoint2D<T, U>> for HomogeneousVector<T, U>
[src]
fn from(p: TypedPoint2D<T, U>) -> Self
[src]
impl<T: One, U> From<TypedPoint3D<T, U>> for HomogeneousVector<T, U>
[src]
fn from(p: TypedPoint3D<T, U>) -> Self
[src]
impl<T, U> Clone for HomogeneousVector<T, U> where
T: Clone,
[src]
T: Clone,
Auto Trait Implementations
impl<T, U> Unpin for HomogeneousVector<T, U> where
T: Unpin,
U: Unpin,
T: Unpin,
U: Unpin,
impl<T, U> Send for HomogeneousVector<T, U> where
T: Send,
U: Send,
T: Send,
U: Send,
impl<T, U> Sync for HomogeneousVector<T, U> where
T: Sync,
U: Sync,
T: Sync,
U: Sync,
impl<T, U> UnwindSafe for HomogeneousVector<T, U> where
T: UnwindSafe,
U: UnwindSafe,
T: UnwindSafe,
U: UnwindSafe,
impl<T, U> RefUnwindSafe for HomogeneousVector<T, U> where
T: RefUnwindSafe,
U: RefUnwindSafe,
T: RefUnwindSafe,
U: RefUnwindSafe,
Blanket Implementations
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
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]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
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]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,