pub struct Circle {
pub center: V2,
pub radius: f32,
}
Fields§
§center: V2
§radius: f32
Implementations§
Trait Implementations§
Source§impl BoundingBox for Circle
impl BoundingBox for Circle
fn bounding_box(&self) -> Option<Rect>
Source§impl ClosestPoint for Circle
impl ClosestPoint for Circle
fn closest_point(&self, _: &SampleSettings, point: &V2) -> Option<V2>
Source§impl<'de> Deserialize<'de> for Circle
impl<'de> Deserialize<'de> for Circle
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 Plottable for Circle
impl Plottable for Circle
fn get_points(&self, sample_settings: &SampleSettings) -> Vec<V2>
fn length(&self) -> f32
fn is_closed(&self) -> bool
fn get_line_segments(&self, sample_settings: &SampleSettings) -> Vec<Line>
fn get_points_oversampled(&self, sample_settings: &SampleSettings) -> Vec<V2>
fn as_geo_polygon(&self, sample_settings: &SampleSettings) -> Polygon<f32>
fn as_geo_line_string( &self, sample_settings: &SampleSettings, ) -> LineString<f32>
fn as_geo_multi_line_string( &self, sample_settings: &SampleSettings, ) -> MultiLineString<f32>
fn get_masked(&self, mask: Shape, sample_settings: &SampleSettings) -> Masked
Source§impl Rotate90 for Circle
impl Rotate90 for Circle
fn rotate_90(&self) -> Self
fn rotate_90_mut(&mut self)
fn rotate_180(&self) -> Self
fn rotate_180_mut(&mut self)
fn rotate_270(&self) -> Self
fn rotate_270_mut(&mut self)
fn rotate_90_around(&self, pivot: &V2) -> Self
fn rotate_90_around_mut(&mut self, pivot: &V2)
fn rotate_180_around(&self, pivot: &V2) -> Self
fn rotate_180_around_mut(&mut self, pivot: &V2)
fn rotate_270_around(&self, pivot: &V2) -> Self
fn rotate_270_around_mut(&mut self, pivot: &V2)
impl StructuralPartialEq for Circle
Auto Trait Implementations§
impl Freeze for Circle
impl RefUnwindSafe for Circle
impl Send for Circle
impl Sync for Circle
impl Unpin for Circle
impl UnwindSafe for Circle
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more