Represents an bounding sphere defined by a center point and a radius.
More...
#include <BoundingSphere.hpp>
Represents an bounding sphere defined by a center point and a radius.
◆ BoundingSphere() [1/7]
| Engine3DRadSpace.Math.BoundingSphere.BoundingSphere |
( |
Vector3 | position, |
|
|
float | radius ) |
|
inline |
◆ BoundingSphere() [2/7]
Default constructor. Creates a null bounding sphere with center at (0,0,0) and radius 0.
◆ BoundingSphere() [3/7]
Creates a bounding sphere with the given center and radius.
- Parameters
-
| center | Center of the sphere |
| radius | Radius of the sphere |
◆ BoundingSphere() [4/7]
Creates a bounding sphere that contains the given bounding box.
- Parameters
-
| box | The bounding box to contain |
◆ BoundingSphere() [5/7]
Creates a bounding sphere that contains both given bounding spheres.
- Parameters
-
| sph1 | The first bounding sphere |
| sph2 | The second bounding sphere |
◆ BoundingSphere() [6/7]
Creates a bounding sphere that contains the given bounding sphere and bounding box.
- Parameters
-
| sph | The bounding sphere to contain |
| box | The bounding box to contain |
◆ BoundingSphere() [7/7]
Creates a bounding sphere that contains both given bounding boxes.
- Parameters
-
| box1 | The first bounding box |
| box2 | The second bounding box |
◆ Contains()
| bool Engine3DRadSpace.Math.BoundingSphere::Contains |
( |
const Vector3 & | p | ) |
const |
Determines whether this bounding sphere contains the given point.
- Parameters
-
| p | The point to test for containment |
- Returns
- True if the bounding sphere contains the point, false otherwise
◆ Intersects() [1/4]
| bool Engine3DRadSpace.Math.BoundingSphere::Intersects |
( |
const BoundingBox & | box | ) |
const |
Determines whether this bounding sphere intersects with the given bounding box.
- Parameters
-
| box | The bounding box to test for intersection |
- Returns
- True if the bounding sphere intersects with the bounding box, false otherwise
◆ Intersects() [2/4]
| bool Engine3DRadSpace.Math.BoundingSphere::Intersects |
( |
const BoundingPlane & | plane | ) |
const |
Determines whether this bounding sphere intersects with the given bounding plane.
- Parameters
-
| plane | The bounding plane to test for intersection |
- Returns
- True if the bounding sphere intersects with the bounding plane, false otherwise
◆ Intersects() [3/4]
| bool Engine3DRadSpace.Math.BoundingSphere::Intersects |
( |
const BoundingSphere & | sphere | ) |
const |
Determines whether this bounding sphere intersects with the given bounding sphere.
- Parameters
-
| sphere | The bounding sphere to test for intersection |
- Returns
- True if the bounding sphere intersects with the bounding sphere, false otherwise
◆ Intersects() [4/4]
| bool Engine3DRadSpace.Math.BoundingSphere::Intersects |
( |
const Ray & | ray | ) |
const |
Determines whether this bounding sphere intersects with the given ray.
- Parameters
-
| ray | The ray to test for intersection |
- Returns
- True if the bounding sphere intersects with the ray, false otherwise
◆ Center
| Vector3 Engine3DRadSpace.Math.BoundingSphere.Center |
◆ Position
| Vector3 Engine3DRadSpace.Math.BoundingSphere.Position |
◆ Radius
| float Engine3DRadSpace.Math.BoundingSphere.Radius |
The documentation for this struct was generated from the following files: