pub struct Point<F> {
pub x: F,
pub y: F,
pub z: F,
}Fields§
§x: F§y: F§z: FImplementations§
Source§impl<F: Float + FloatConst> Point<F>
impl<F: Float + FloatConst> Point<F>
Sourcepub fn distance_to(&self, pt: &Point<F>) -> F
pub fn distance_to(&self, pt: &Point<F>) -> F
Calculates distance to another Point.
Sourcepub fn normalized(&self) -> Point<F>
pub fn normalized(&self) -> Point<F>
Normalize coordinates of the Point.
Trait Implementations§
Source§impl<F: Ord> Ord for Point<F>
impl<F: Ord> Ord for Point<F>
Source§impl<F: PartialOrd> PartialOrd for Point<F>
impl<F: PartialOrd> PartialOrd for Point<F>
impl<F: Copy> Copy for Point<F>
impl<F: Eq> Eq for Point<F>
impl<F> StructuralPartialEq for Point<F>
Auto Trait Implementations§
impl<F> Freeze for Point<F>where
F: Freeze,
impl<F> RefUnwindSafe for Point<F>where
F: RefUnwindSafe,
impl<F> Send for Point<F>where
F: Send,
impl<F> Sync for Point<F>where
F: Sync,
impl<F> Unpin for Point<F>where
F: Unpin,
impl<F> UnwindSafe for Point<F>where
F: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more