Provides storage for common representation of spherical bounding volume, and wraps up common functionality.
More...
#include <bsphere.h>
|
| bsphere () |
|
| bsphere (const vec3 &_position, float _radius) |
|
| bsphere (float x, float y, float z, float _radius) |
|
bool | contains_point (const vec3 &point) const |
| Tests to see if the specified point falls within this bounding sphere or not. A point precisely on the boundary is also considered to be contained.
|
|
bool | contains_point (const vec3 &point, float tolerance) const |
| Tests to see if the specified point falls within this bounding sphere or not, taking into account the provided tolerance. A point precisely on the boundary is also considered to be contained.
|
|
bsphere & | from_points (const char *point_buffer, unsigned int point_count, unsigned int point_stride) |
| Calculates a tight fitting bounding sphere from the points supplied.
|
|
bsphere & | operator+= (const vec3 &shift) |
| Adjusts the position of the bounding sphere by the specified amount.
|
|
bsphere & | operator-= (const vec3 &shift) |
| Adjusts the position of the bounding sphere by the specified amount.
|
|
bool | operator!= (const bsphere &bounds) const |
| Test for inequality between this bounding sphere and another.
|
|
bool | operator== (const bsphere &bounds) const |
| Test for equality between this bounding sphere and another.
|
|
Provides storage for common representation of spherical bounding volume, and wraps up common functionality.
Definition at line 17 of file bsphere.h.
◆ bsphere() [1/3]
math::bsphere::bsphere |
( |
| ) |
|
|
inline |
◆ bsphere() [2/3]
math::bsphere::bsphere |
( |
const vec3 & | _position, |
|
|
float | _radius ) |
|
inline |
◆ bsphere() [3/3]
math::bsphere::bsphere |
( |
float | x, |
|
|
float | y, |
|
|
float | z, |
|
|
float | _radius ) |
|
inline |
◆ contains_point() [1/2]
bool math::bsphere::contains_point |
( |
const vec3 & | point | ) |
const |
|
inline |
Tests to see if the specified point falls within this bounding sphere or not. A point precisely on the boundary is also considered to be contained.
Definition at line 44 of file bsphere.h.
◆ contains_point() [2/2]
bool math::bsphere::contains_point |
( |
const vec3 & | point, |
|
|
float | tolerance ) const |
|
inline |
Tests to see if the specified point falls within this bounding sphere or not, taking into account the provided tolerance. A point precisely on the boundary is also considered to be contained.
Definition at line 57 of file bsphere.h.
◆ from_points()
bsphere & math::bsphere::from_points |
( |
const char * | point_buffer, |
|
|
unsigned int | point_count, |
|
|
unsigned int | point_stride ) |
Calculates a tight fitting bounding sphere from the points supplied.
Definition at line 20 of file bsphere.cpp.
◆ operator!=()
bool math::bsphere::operator!= |
( |
const bsphere & | bounds | ) |
const |
|
inline |
Test for inequality between this bounding sphere and another.
Definition at line 100 of file bsphere.h.
◆ operator+=()
bsphere & math::bsphere::operator+= |
( |
const vec3 & | shift | ) |
|
|
inline |
Adjusts the position of the bounding sphere by the specified amount.
Definition at line 76 of file bsphere.h.
◆ operator-=()
bsphere & math::bsphere::operator-= |
( |
const vec3 & | shift | ) |
|
|
inline |
Adjusts the position of the bounding sphere by the specified amount.
Definition at line 88 of file bsphere.h.
◆ operator==()
bool math::bsphere::operator== |
( |
const bsphere & | bounds | ) |
const |
|
inline |
Test for equality between this bounding sphere and another.
Definition at line 111 of file bsphere.h.
◆ empty
◆ position
vec3 math::bsphere::position |
◆ radius
float math::bsphere::radius |
The documentation for this class was generated from the following files:
- C:/Workspace/github/UnravelEngine/UnravelEngine/engine/core/math/bsphere.h
- C:/Workspace/github/UnravelEngine/UnravelEngine/engine/core/math/bsphere.cpp