pub struct ConicLineHit { /* private fields */ }Expand description
One exact hit of a line with a conic: t = (-beta +- sqrt(disc)) / alpha
on the line, or t = -gamma / (2 beta) in the linear case.
Implementations§
Source§impl ConicLineHit
impl ConicLineHit
Sourcepub fn cmp_param(&self, value: f64) -> Result<Sign, ExactError>
pub fn cmp_param(&self, value: f64) -> Result<Sign, ExactError>
Exact sign of t - value.
Sourcepub fn compare_along(&self, other: &Self) -> Result<Sign, ExactError>
pub fn compare_along(&self, other: &Self) -> Result<Sign, ExactError>
Exact sign of self - other along their common line.
Sourcepub fn approx_point(&self) -> Point2
pub fn approx_point(&self) -> Point2
An approximate point, for output only.
Trait Implementations§
Source§impl Clone for ConicLineHit
impl Clone for ConicLineHit
Source§fn clone(&self) -> ConicLineHit
fn clone(&self) -> ConicLineHit
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ConicLineHit
impl Debug for ConicLineHit
Source§impl PartialEq for ConicLineHit
impl PartialEq for ConicLineHit
impl StructuralPartialEq for ConicLineHit
Auto Trait Implementations§
impl Freeze for ConicLineHit
impl RefUnwindSafe for ConicLineHit
impl Send for ConicLineHit
impl Sync for ConicLineHit
impl Unpin for ConicLineHit
impl UnwindSafe for ConicLineHit
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