pub struct RayTriangleHit {
pub t: f64,
pub u: f64,
pub v: f64,
}Expand description
Result of a watertight ray-triangle intersection test.
Fields§
§t: f64Distance along the ray to the hit point (t parameter).
u: f64Barycentric coordinate u.
v: f64Barycentric coordinate v.
Trait Implementations§
Source§impl Clone for RayTriangleHit
impl Clone for RayTriangleHit
Source§fn clone(&self) -> RayTriangleHit
fn clone(&self) -> RayTriangleHit
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 RayTriangleHit
Auto Trait Implementations§
impl Freeze for RayTriangleHit
impl RefUnwindSafe for RayTriangleHit
impl Send for RayTriangleHit
impl Sync for RayTriangleHit
impl Unpin for RayTriangleHit
impl UnsafeUnpin for RayTriangleHit
impl UnwindSafe for RayTriangleHit
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