pub struct Circle2D { /* private fields */ }Expand description
A 2D circle defined by center and radius.
Parameterized as P(t) = center + radius * (cos(t), sin(t)).
t ranges from 0 to 2π for a full circle.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Circle2D
impl<'de> Deserialize<'de> for Circle2D
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
Auto Trait Implementations§
impl Freeze for Circle2D
impl RefUnwindSafe for Circle2D
impl Send for Circle2D
impl Sync for Circle2D
impl Unpin for Circle2D
impl UnsafeUnpin for Circle2D
impl UnwindSafe for Circle2D
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