pub struct PairSegment {
pub a: TriangleId,
pub b: TriangleId,
pub from: [f32; 3],
pub to: [f32; 3],
}Expand description
One intersection segment between a triangle of A and one of B, in A’s
space (B placed by the query’s Rigid).
A pair of triangles that only touch at a point contributes no segment;
coplanar pairs contribute only area overlaps, as their boundary (see
intersection_polylines): the same segments [clip_pair] finds, one
entry per pair, before any welding or duplicate cancellation. Endpoints
are f32 casts of the f64 interpolations.
Fields§
§a: TriangleIdThe triangle of A.
b: TriangleIdThe triangle of B.
from: [f32; 3]One end of the intersection segment, in A’s space.
to: [f32; 3]The other end, in A’s space.
Trait Implementations§
Source§impl Clone for PairSegment
impl Clone for PairSegment
Source§fn clone(&self) -> PairSegment
fn clone(&self) -> PairSegment
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PairSegment
Source§impl Debug for PairSegment
impl Debug for PairSegment
Source§impl PartialEq for PairSegment
impl PartialEq for PairSegment
impl StructuralPartialEq for PairSegment
Auto Trait Implementations§
impl Freeze for PairSegment
impl RefUnwindSafe for PairSegment
impl Send for PairSegment
impl Sync for PairSegment
impl Unpin for PairSegment
impl UnsafeUnpin for PairSegment
impl UnwindSafe for PairSegment
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