pub struct Inversion { /* private fields */ }Expand description
A planar geometric inversion represented by center and radius.
Implementations§
Source§impl Inversion
impl Inversion
Sourcepub fn try_new(center: Point2, radius: f64) -> Result<Self, GeometryError>
pub fn try_new(center: Point2, radius: f64) -> Result<Self, GeometryError>
Creates an inversion with a finite center and positive finite radius.
§Errors
Returns a GeometryError when the center is non-finite or the radius is invalid.
Sourcepub const fn radius_squared(self) -> f64
pub const fn radius_squared(self) -> f64
Returns the squared inversion radius.
Trait Implementations§
impl Copy for Inversion
impl StructuralPartialEq for Inversion
Auto Trait Implementations§
impl Freeze for Inversion
impl RefUnwindSafe for Inversion
impl Send for Inversion
impl Sync for Inversion
impl Unpin for Inversion
impl UnsafeUnpin for Inversion
impl UnwindSafe for Inversion
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