Record Class Hit

java.lang.Object
java.lang.Record
com.marginallyclever.ro3.raypicking.Hit
Record Components:
target - the MeshInstance that the Ray intersected.
distance - the distance from the Ray origin to the point of contact.
normal - the normal of the Mesh at the point of contact, in world space.
point - the point of contact in world space.
triangle - the triangle at the point of contact.

public record Hit(MeshInstance target, double distance, javax.vecmath.Vector3d normal, javax.vecmath.Point3d point, PathTriangle triangle) extends Record
A ray hit is a record of a ray hitting a MeshInstance at a certain distance.