Struct ExactCurveHit
#[non_exhaustive]pub struct ExactCurveHit {
pub parameter: ExactCurveParameter,
pub multiplicity: usize,
pub point: DVec3,
}Expand description
One intersection point.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.parameter: ExactCurveParameterIts parameter on the first curve, exactly.
multiplicity: usizeIts multiplicity: 1 for a transverse crossing, 2 or more where the curve touches the other operand.
point: DVec3The point, rounded from the curve at the parameter (output only).
Planar results have z = 0.
Implementations§
§impl ExactCurveHit
impl ExactCurveHit
pub fn is_tangent(&self) -> bool
pub fn is_tangent(&self) -> bool
Whether the curve touches rather than crosses here.
Trait Implementations§
§impl Clone for ExactCurveHit
impl Clone for ExactCurveHit
§fn clone(&self) -> ExactCurveHit
fn clone(&self) -> ExactCurveHit
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 more§impl Debug for ExactCurveHit
impl Debug for ExactCurveHit
§impl PartialEq for ExactCurveHit
impl PartialEq for ExactCurveHit
impl StructuralPartialEq for ExactCurveHit
Auto Trait Implementations§
impl Freeze for ExactCurveHit
impl RefUnwindSafe for ExactCurveHit
impl Send for ExactCurveHit
impl Sync for ExactCurveHit
impl Unpin for ExactCurveHit
impl UnwindSafe for ExactCurveHit
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more