Enum tri_mesh::Intersection
source · pub enum Intersection {
Point {
primitive: Primitive,
point: Vec3,
},
LinePiece {
primitive0: Primitive,
primitive1: Primitive,
point0: Vec3,
point1: Vec3,
},
}
Expand description
An enum describing the types of intersections.
Variants
Point
Fields
point: Vec3
The point where the intersection occurs
The intersection occurs at a single point
LinePiece
Fields
primitive0: Primitive
The Primitive (vertex, edge or face) that is intersected at the first end point of the line piece where the intersection occurs
primitive1: Primitive
The Primitive (vertex, edge or face) that is intersected at the second end point of the line piece where the intersection occurs
point0: Vec3
The first end point of the line piece where the intersection occurs
point1: Vec3
The second end point of the line piece where the intersection occurs
The intersection occurs at a line piece interval
Trait Implementations
sourceimpl Clone for Intersection
impl Clone for Intersection
sourcefn clone(&self) -> Intersection
fn clone(&self) -> Intersection
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for Intersection
impl Debug for Intersection
sourceimpl PartialEq<Intersection> for Intersection
impl PartialEq<Intersection> for Intersection
sourcefn eq(&self, other: &Intersection) -> bool
fn eq(&self, other: &Intersection) -> bool
impl StructuralPartialEq for Intersection
Auto Trait Implementations
impl RefUnwindSafe for Intersection
impl Send for Intersection
impl Sync for Intersection
impl Unpin for Intersection
impl UnwindSafe for Intersection
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more