fromNormalAndCoplanarPoint method

Plane fromNormalAndCoplanarPoint(
  1. Vector3 normal,
  2. Vector3 point
)

Sets the values of the plane from the given normal vector and a coplanar point.

Implementation

Plane fromNormalAndCoplanarPoint(Vector3 normal, Vector3 point ) {
	this.normal.copy( normal );
	constant = - point.dot( this.normal );

	return this;
}