intersectPlane<T extends Vector> method

T? intersectPlane<T extends Vector>(
  1. Plane plane,
  2. T target
)

Implementation

T? intersectPlane<T extends Vector>(Plane plane, T target) {
  double? t = distanceToPlane(plane);

  return t == null ? null : at(t, target);
}