pub struct Math<T>(/* private fields */);Expand description
Zero-sized struct for performing mathematical calculations on floating points.
Implementations§
Source§impl<T: Float> Math<T>
impl<T: Float> Math<T>
Sourcepub fn circumcircle(p1: Point<T>, p2: Point<T>, p3: Point<T>) -> (Point<T>, T)
pub fn circumcircle(p1: Point<T>, p2: Point<T>, p3: Point<T>) -> (Point<T>, T)
Computes the circumcircle given 3 points.
Sourcepub fn point_on_line(a: Point<T>, b: Point<T>, len: T) -> Point<T>
pub fn point_on_line(a: Point<T>, b: Point<T>, len: T) -> Point<T>
Get the point on the line segment on p1, p2 that ends after length
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Math<T>
impl<T> RefUnwindSafe for Math<T>where
T: RefUnwindSafe,
impl<T> Send for Math<T>where
T: Send,
impl<T> Sync for Math<T>where
T: Sync,
impl<T> Unpin for Math<T>where
T: Unpin,
impl<T> UnwindSafe for Math<T>where
T: UnwindSafe,
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