pub struct SceneMeshDistance {
pub distance: f64,
pub point_a: [f64; 3],
pub point_b: [f64; 3],
pub triangle_a: TriangleId,
pub triangle_b: TriangleId,
}Expand description
The closest pair of points between two meshes, in the world.
Fields§
§distance: f64The distance between the two surfaces (0 when they touch or
intersect), as Phase 3’s mesh_distance reports it.
point_a: [f64; 3]The closest point on A’s triangle triangle_a, in the world.
point_b: [f64; 3]The closest point on B’s triangle triangle_b, in the world.
triangle_a: TriangleIdThe triangle of A that point_a lies on.
triangle_b: TriangleIdThe triangle of B that point_b lies on.
Trait Implementations§
Source§impl Clone for SceneMeshDistance
impl Clone for SceneMeshDistance
Source§fn clone(&self) -> SceneMeshDistance
fn clone(&self) -> SceneMeshDistance
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 SceneMeshDistance
Source§impl Debug for SceneMeshDistance
impl Debug for SceneMeshDistance
Source§impl PartialEq for SceneMeshDistance
impl PartialEq for SceneMeshDistance
impl StructuralPartialEq for SceneMeshDistance
Auto Trait Implementations§
impl Freeze for SceneMeshDistance
impl RefUnwindSafe for SceneMeshDistance
impl Send for SceneMeshDistance
impl Sync for SceneMeshDistance
impl Unpin for SceneMeshDistance
impl UnsafeUnpin for SceneMeshDistance
impl UnwindSafe for SceneMeshDistance
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