containsPoint method

bool containsPoint(
  1. Vector3 point
)

Returns true if this sphere contains the given point inclusive of the surface of the sphere.

Vector3 point - The point to check.

Implementation

// return bool Whether this sphere contains the given point or not.
bool containsPoint(Vector3 point ) {
	return ( point.distanceToSquared( this.center ) <= ( this.radius * this.radius ) );
}