pub struct Circle {
pub radius: Scalar,
pub offset: Vec2,
}Expand description
Circle with offset.
Fields§
§radius: ScalarRadius of the circle.
offset: Vec2Offset.
Implementations§
Source§impl Circle
impl Circle
Sourcepub fn circle_polygon(radius: Scalar, resolution: &RenderResolution) -> Polygon
pub fn circle_polygon(radius: Scalar, resolution: &RenderResolution) -> Polygon
Render a circle with a radius into a polygon.
Trait Implementations§
Source§impl CalcBounds2D for Circle
impl CalcBounds2D for Circle
Source§fn calc_bounds_2d(&self) -> Bounds2D
fn calc_bounds_2d(&self) -> Bounds2D
Fetch bounds.
Source§impl FetchPoints2D for Circle
impl FetchPoints2D 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