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
The intersection occurs at a single point
Fields
LinePiece
The intersection occurs at a line piece interval
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
Trait Implementations§
source§impl Clone for Intersection
impl Clone for Intersection
source§fn clone(&self) -> Intersection
fn clone(&self) -> Intersection
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 Intersection
impl Debug for Intersection
source§impl PartialEq for Intersection
impl PartialEq for Intersection
impl StructuralPartialEq for Intersection
Auto Trait Implementations§
impl Freeze for Intersection
impl RefUnwindSafe for Intersection
impl Send for Intersection
impl Sync for Intersection
impl Unpin for Intersection
impl UnwindSafe for Intersection
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)