Struct crystal_ball::math::Hit
source · pub struct Hit {
pub position: Point3,
pub normal: Vec3,
pub tangent: Option<Vec4>,
pub distance: f64,
pub uv: Point2,
}
Fields§
§position: Point3
The hit’s position in world space.
normal: Vec3
The hit’s normal in world space.
tangent: Option<Vec4>
The hit’s tangent in world space, if any.
distance: f64
The distance between the Ray
’s origin and the hit’s position.
uv: Point2
The hit’s UV coordinates on the Object
.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Hit
impl Send for Hit
impl Sync for Hit
impl Unpin for Hit
impl UnwindSafe for Hit
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