pub struct Elliptical {
pub center: Point,
pub radii: Vector,
pub rotation: Radians,
pub start_angle: Radians,
pub end_angle: Radians,
}
Available on crate feature
geometry
only.Expand description
An elliptical Arc
.
Fields§
§center: Point
The center of the arc.
radii: Vector
The radii of the arc’s ellipse. The horizontal and vertical half-dimensions of the ellipse will match the x and y values of the radii vector.
rotation: Radians
The clockwise rotation of the arc’s ellipse.
start_angle: Radians
The start of the segment’s angle, clockwise rotation from positive x-axis.
end_angle: Radians
The end of the segment’s angle, clockwise rotation from positive x-axis.
Trait Implementations§
Source§impl Clone for Elliptical
impl Clone for Elliptical
Source§fn clone(&self) -> Elliptical
fn clone(&self) -> Elliptical
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for Elliptical
impl Debug for Elliptical
Source§impl From<Arc> for Elliptical
impl From<Arc> for Elliptical
Source§fn from(arc: Arc) -> Elliptical
fn from(arc: Arc) -> Elliptical
Converts to this type from the input type.
impl Copy for Elliptical
Auto Trait Implementations§
impl Freeze for Elliptical
impl RefUnwindSafe for Elliptical
impl Send for Elliptical
impl Sync for Elliptical
impl Unpin for Elliptical
impl UnwindSafe for Elliptical
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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