A Vector3 defining the center of the sphere. Default is (0, 0, 0).
The radius of the sphere. Default is -1.
Clamps a point within the sphere. If the point is outside the sphere, it will clamp it to the closest point on the edge of the sphere. Points already inside the sphere will not be affected.
Vector3 The point to clamp.
The result will be copied into this Vector3.
Returns aMinimum Bounding Box for the sphere.
Checks to see if the sphere is empty (the radius set to a negative number). Spheres with a radius of 0 contain only their center point and are not considered to be empty.
Computes the minimum bounding sphere for an array of points. If optionalCenteris given, it is used as the sphere's center. Otherwise, the center of the axis-aligned bounding box encompassing points is calculated.
Optional Vector3 position for the sphere's center.
Generated using TypeDoc
A sphere defined by a center and radius. See the ngx3js docs page for details.
Examples
games / fps