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<STPoint<M>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<STPoint<M>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<M> Interpolate for STPoint<M>where
M: Interpolate,
impl<M> Interpolate for STPoint<M>where
M: Interpolate,
Source§impl<M> Serialize for STPoint<M>where
M: Serialize,
impl<M> Serialize for STPoint<M>where
M: Serialize,
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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§
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