distanceToPoint method

double distanceToPoint(
  1. Vector3 point
)

Computes the signed distance from the given 3D vector to this plane. The sign of the distance indicates the half-space in which the points lies. Zero means the point lies on the plane.

Implementation

double distanceToPoint(Vector3 point ) {
	return normal.dot( point ) + constant;
}