pub struct Ellipse { /* private fields */ }
Implementations§
Source§impl Ellipse
impl Ellipse
pub const fn named( name: &'static str, semi_major_axis: Length, inverse_flattening: f64, ) -> Ellipse
pub const fn new(semi_major_axis: Length, inverse_flattening: f64) -> Ellipse
pub const fn new_meters( semi_major_axis_meters: f64, inverse_flattening: f64, ) -> Ellipse
pub const fn new_sphere(radius: Length) -> Ellipse
pub const fn new_sphere_meters(radius_meters: f64) -> Ellipse
pub const fn semi_major_axis_a(&self) -> Length
pub const fn inverse_flattening(&self) -> f64
pub const fn name(&self) -> &'static str
pub fn semi_minor_axis_b(&self) -> Length
pub fn flattening_f(&self) -> f64
pub fn first_eccentricity_squared(&self) -> f64
pub fn first_eccentricity(&self) -> f64
pub fn second_eccentricity_squared(&self) -> f64
pub fn second_eccentricity(&self) -> f64
pub fn as_ellipsoid(&self) -> Ellipsoid
pub fn as_elliptical_shape(&self) -> EllipticalShape
Trait Implementations§
Source§impl From<&StandardShapes> for Ellipse
impl From<&StandardShapes> for Ellipse
Source§fn from(value: &StandardShapes) -> Self
fn from(value: &StandardShapes) -> Self
Converts to this type from the input type.
Source§impl TryFrom<&EllipticalShape> for Ellipse
impl TryFrom<&EllipticalShape> for Ellipse
Source§type Error = ConvertError
type Error = ConvertError
The type returned in the event of a conversion error.
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