pub struct STPoint<M> {
pub face: Face,
pub s: f64,
pub t: f64,
pub z: Option<f64>,
pub m: Option<M>,
}Expand description
A Point in S2 Space with a Face
Fields§
§face: FaceThe face of the point
s: f64The s coordinate
t: f64The t coordinate
z: Option<f64>The z coordinate
m: Option<M>The m coordinate
Trait Implementations§
Source§impl<'de, M> Deserialize<'de> for STPoint<M>where
M: Deserialize<'de>,
impl<'de, M> Deserialize<'de> for STPoint<M>where
M: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<M: Interpolate> Interpolate for STPoint<M>
impl<M: Interpolate> Interpolate for STPoint<M>
Source§fn interpolate(&self, other: &Self, t: f64) -> Self
fn interpolate(&self, other: &Self, t: f64) -> Self
Interpolate between two of the same type
impl<M> StructuralPartialEq for STPoint<M>
Auto Trait Implementations§
impl<M> Freeze for STPoint<M>where
M: Freeze,
impl<M> RefUnwindSafe for STPoint<M>where
M: RefUnwindSafe,
impl<M> Send for STPoint<M>where
M: Send,
impl<M> Sync for STPoint<M>where
M: Sync,
impl<M> Unpin for STPoint<M>where
M: Unpin,
impl<M> UnwindSafe for STPoint<M>where
M: UnwindSafe,
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)