pub struct Explicit(/* private fields */);Expand description
A point of type Explicit: the point with the coordinates p, given
exactly. Its approximation is its coordinates and its error is zero.
Implementations§
Source§impl Explicit
impl Explicit
Sourcepub fn new_unchecked(p: [f64; 3]) -> Self
pub fn new_unchecked(p: [f64; 3]) -> Self
The point with the coordinates p, without checking them. A coordinate that
is not finite makes Point::exact fail with ExactError::OutOfRange.
Trait Implementations§
impl Copy for Explicit
Source§impl Point for Explicit
impl Point for Explicit
Source§fn is_explicit(&self) -> bool
fn is_explicit(&self) -> bool
Whether the point is explicit. It may return
true only if
approx holds the exact coordinates, every
err is zero and exact gives
Weight::One; returning false is always allowed. A wrong true
makes the predicates return wrong signs, unchecked.Source§fn exact(&self, scratch: &mut Scratch<'_>) -> Result<ExactCoords, ExactError>
fn exact(&self, scratch: &mut Scratch<'_>) -> Result<ExactCoords, ExactError>
impl StructuralPartialEq for Explicit
Auto Trait Implementations§
impl Forget for Explicit
impl Freeze for Explicit
impl Move for Explicit
impl RefUnwindSafe for Explicit
impl Send for Explicit
impl Sync for Explicit
impl Unpin for Explicit
impl UnsafeUnpin for Explicit
impl UnwindSafe for Explicit
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