public Ray(Vector3f o, Vector3f d) { origin = o; direction = d; closestHitDistance = WORLD_MAX; closestHitObject = null; }