pub struct Ellipse { /* private fields */ }
Expand description
A discrete measurement of an Ellipse. An Ellipse is a circle with two
CircularDimension
s offset by 90° to each other.
The Ellipse::first_axis
orientation is indicated by Ellipse::orientation
and the Ellipse::second_axis
is oriented orthogonally to the first.
Implementations§
Source§impl Ellipse
impl Ellipse
pub fn new( first_axis: CircularDimension, second_axis: CircularDimension, ) -> Ellipse
pub fn semi_major_axis(&self) -> CircularDimension
pub fn semi_minor_axis(&self) -> CircularDimension
pub fn major_axis(&self) -> CircularDimension
pub fn minor_axis(&self) -> CircularDimension
pub fn orientation(&self) -> Option<CompassDirection>
pub fn with_orientation(self, orientation: CompassDirection) -> Ellipse
Trait Implementations§
Source§impl From<&CircularDimension> for Ellipse
impl From<&CircularDimension> for Ellipse
Source§fn from(value: &CircularDimension) -> Self
fn from(value: &CircularDimension) -> Self
Converts to this type from the input type.
Source§impl From<CircularDimension> for Ellipse
impl From<CircularDimension> for Ellipse
Source§fn from(value: CircularDimension) -> Self
fn from(value: CircularDimension) -> Self
Converts to this type from the input type.
impl Copy for Ellipse
impl StructuralPartialEq for Ellipse
Auto Trait Implementations§
impl Freeze for Ellipse
impl RefUnwindSafe for Ellipse
impl Send for Ellipse
impl Sync for Ellipse
impl Unpin for Ellipse
impl UnwindSafe for Ellipse
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