pub struct Hyperbola { /* private fields */ }Expand description
A hyperbola represented by a center and positive transverse/conjugate radii.
Implementations§
Source§impl Hyperbola
impl Hyperbola
Sourcepub fn new(
center: Point2,
transverse_radius: f64,
conjugate_radius: f64,
) -> Option<Self>
pub fn new( center: Point2, transverse_radius: f64, conjugate_radius: f64, ) -> Option<Self>
Creates a hyperbola with positive finite radii.
Sourcepub const fn transverse_radius(self) -> f64
pub const fn transverse_radius(self) -> f64
Returns the transverse radius.
Sourcepub const fn conjugate_radius(self) -> f64
pub const fn conjugate_radius(self) -> f64
Returns the conjugate radius.
Trait Implementations§
impl Copy for Hyperbola
impl StructuralPartialEq for Hyperbola
Auto Trait Implementations§
impl Freeze for Hyperbola
impl RefUnwindSafe for Hyperbola
impl Send for Hyperbola
impl Sync for Hyperbola
impl Unpin for Hyperbola
impl UnsafeUnpin for Hyperbola
impl UnwindSafe for Hyperbola
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