#include <Sphere.h>
Definition at line 18 of file Sphere.h.
◆ Sphere() [1/2]
Creates an uninitialized sphere.
◆ Sphere() [2/2]
Sphere::Sphere |
( |
const Vector & |
center, |
|
|
const Float |
radius |
|
) |
| |
|
inline |
Creates a sphere given its center and radius.
Definition at line 31 of file Sphere.h.
◆ center() [1/2]
◆ center() [2/2]
◆ contains()
◆ getBBox()
◆ intersects()
INLINE bool Sphere::intersects |
( |
const Sphere & |
other | ) |
const |
|
inline |
Checks if the sphere intersects another sphere.
If one sphere contains the other one entirely, it counts as an intersections.
Definition at line 68 of file Sphere.h.
◆ intersectsBox()
Checks the intersection of the sphere with a box.
- Todo:
- not all branches are actually needed by TreeWalk, possibly optimize by some constexpr flag
Definition at line 83 of file Sphere.h.
◆ overlaps()
INLINE bool Sphere::overlaps |
( |
const Box & |
box | ) |
const |
|
inline |
Checks whether the sphere partially or fully overlaps given box.
Definition at line 73 of file Sphere.h.
◆ radius() [1/2]
◆ radius() [2/2]
◆ volume()
The documentation for this class was generated from the following file:
- /home/pavel/projects/astro/sph/src/core/objects/geometry/Sphere.h