pub struct Circle {
pub radius: Scalar,
pub offset: Vec2,
}
Expand description
Circle with offset.
Fields§
§radius: Scalar
Radius of the circle.
offset: Vec2
Offset.
Trait Implementations§
Source§impl FetchBounds2D for Circle
impl FetchBounds2D for Circle
Source§fn fetch_bounds_2d(&self) -> Bounds2D
fn fetch_bounds_2d(&self) -> Bounds2D
Fetch bounds.
Source§impl FetchPoints2D for Circle
impl FetchPoints2D for Circle
Source§impl RenderToMultiPolygon for Circle
impl RenderToMultiPolygon for Circle
Source§fn render_to_polygon(&self, resolution: &RenderResolution) -> Option<Polygon>
fn render_to_polygon(&self, resolution: &RenderResolution) -> Option<Polygon>
Source§fn render_to_multi_polygon(&self, resolution: &RenderResolution) -> MultiPolygon
fn render_to_multi_polygon(&self, resolution: &RenderResolution) -> MultiPolygon
Render a geometry into a new multi polygon. Read more
Source§fn render_to_existing_multi_polygon(
&self,
resolution: &RenderResolution,
polygons: &mut MultiPolygon,
)
fn render_to_existing_multi_polygon( &self, resolution: &RenderResolution, polygons: &mut MultiPolygon, )
Render a geometry into a new multi polygon and attaches it to a list of existing polygons. Read more
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