intersectPlane

fun intersectPlane(plane: Plane, target: Vector3): Vector3?

Intersects this ray with plane, writing the intersection point into target.

Return

target on a hit, or null if there is no intersection.