pub struct TriangleHit {
pub t: f64,
pub barycentric: [f64; 3],
}Expand description
A ray-triangle hit: distance along the ray and barycentric weights of the hit point.
Fields§
§t: f64§barycentric: [f64; 3]Weights [wa, wb, wc] of the triangle’s vertices at the hit point.
Trait Implementations§
Source§impl Clone for TriangleHit
impl Clone for TriangleHit
impl Copy for TriangleHit
Source§impl Debug for TriangleHit
impl Debug for TriangleHit
Source§impl PartialEq for TriangleHit
impl PartialEq for TriangleHit
impl StructuralPartialEq for TriangleHit
Auto Trait Implementations§
impl Freeze for TriangleHit
impl RefUnwindSafe for TriangleHit
impl Send for TriangleHit
impl Sync for TriangleHit
impl Unpin for TriangleHit
impl UnsafeUnpin for TriangleHit
impl UnwindSafe for TriangleHit
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