containsPoint method

bool containsPoint(
  1. Point other
)

Checks if the Plane contains a Point.

Returns true if the Point lies on the plane, and false otherwise.

Implementation

bool containsPoint(Point other) {
  Vector differenceVector = (other - point).toVector();
  return normal.dot(differenceVector).abs() < 1e-10;
}