pub struct Point<T: FloatIsh> {
pub x: T,
pub y: T,
pub z: Option<T>,
pub m: Option<T>,
}Fields§
§x: T§y: T§z: Option<T>§m: Option<T>Implementations§
Trait Implementations§
Source§impl<T: FloatIsh> AddAssign<Vector<T>> for Point<T>
impl<T: FloatIsh> AddAssign<Vector<T>> for Point<T>
Source§fn add_assign(&mut self, rhs: Vector<T>)
fn add_assign(&mut self, rhs: Vector<T>)
Performs the
+= operation. Read moreSource§impl<T: PartialOrd + FloatIsh> PartialOrd for Point<T>
impl<T: PartialOrd + FloatIsh> PartialOrd for Point<T>
Source§impl<T: FloatIsh> Point2D<T> for Point<T>
impl<T: FloatIsh> Point2D<T> for Point<T>
fn x(&self) -> T
fn y(&self) -> T
fn z(&self) -> Option<T>
fn m(&self) -> Option<T>
fn as_pointz(&self, default_z: T) -> PointZ<T>
fn as_pointm(&self, or_else_m: T) -> PointM<T>
fn as_pointzm(&self, or_else_z: T, or_else_m: T) -> PointZM<T>
fn new_point(x: T, y: T) -> Point<T>
Source§impl<T: FloatIsh> SubAssign<Vector<T>> for Point<T>
impl<T: FloatIsh> SubAssign<Vector<T>> for Point<T>
Source§fn sub_assign(&mut self, rhs: Vector<T>)
fn sub_assign(&mut self, rhs: Vector<T>)
Performs the
-= operation. Read moreimpl<T: Copy + FloatIsh> Copy for Point<T>
impl<T: FloatIsh> StructuralPartialEq for Point<T>
Auto Trait Implementations§
impl<T> Freeze for Point<T>where
T: Freeze,
impl<T> RefUnwindSafe for Point<T>where
T: RefUnwindSafe,
impl<T> Send for Point<T>where
T: Send,
impl<T> Sync for Point<T>where
T: Sync,
impl<T> Unpin for Point<T>where
T: Unpin,
impl<T> UnwindSafe for Point<T>where
T: 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