A 3D sphere.
![]() | A 3D sphere. |
![]() | The center point of this sphere. |
![]() | The radius of this sphere. |
![]() | The default constructor does not initialize any members of this class. |
![]() | Translates this Sphere in world space. |
![]() | Applies a transformation to this Sphere, in-place. |
![]() | Returns the smallest AABB that encloses this sphere. |
![]() | Returns the largest AABB that fits inside this sphere. |
![]() | Sets pos = (0,0,0) and r = -inf. |
![]() | Computes the volume of this sphere. |
![]() | Computes the surface area of this sphere. |
![]() | Computes the diameter of this sphere. |
![]() | Returns the center of mass of this sphere. |
![]() | Quickly returns an arbitrary point inside this Sphere. Used in GJK intersection test. |
![]() | Computes the extreme point of this Sphere in the given direction. |
![]() | Projects this Sphere onto the given 1D axis direction vector. |
![]() | Tests if this Sphere is finite. |
![]() | Returns true if this Sphere is degenerate. |
![]() | Resets the members of this Sphere to NaN values. |
![]() | Tests if the given object is fully contained inside this sphere. |
![]() | Returns the distance between this sphere and the given object. |
![]() | Returns the maximal distance of this sphere to the given point. |
![]() | Computes the closest point on this sphere to the given object. |
![]() | Tests whether this sphere and the given object intersect. |
![]() | Expands this sphere to enclose both the original sphere and the given object. |
![]() | Expands the radius of this Sphere until it encloses the given object. |
![]() | Generates a random point inside this sphere. |
![]() | Generates a random point on the surface of this sphere. |
![]() | Produces a geosphere-triangulation of this sphere. |
![]() | Returns a human-readable representation of this Sphere. Most useful for debugging purposes. |
![]() | |
![]() | Returns a string of C++ code that can be used to construct this object. Useful for generating test cases from badly behaving objects. |
![]() | |
![]() | Compares whether this Sphere and the given Sphere are identical bit-by-bit in the underlying representation. |
![]() | Computes a Sphere that bounds the given point array. |
![]() | Computes the minimal bounding sphere for the given point array. |
![]() | Fits a sphere through the given two points. |
![]() | |
![]() | |
![]() | Returns a random normalized direction vector. |
![]() | Computes the intersection of a line and a sphere. |
![]() |