Record Class RayHit

java.lang.Object
java.lang.Record
com.marginallyclever.ro3.raypicking.RayHit
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.

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