| 123456789101112131415161718192021222324252627282930313233343536373839 |
- $#include "Sphere.h"
- class Sphere
- {
- Sphere();
- Sphere(const Sphere& sphere);
- Sphere(const Vector3& center, float radius);
- Sphere(const BoundingBox& box);
- Sphere(const Frustum& frustum);
- Sphere(const Polyhedron& poly);
-
- bool operator == (const Sphere& rhs) const;
-
- void Define(const Sphere& sphere);
- void Define(const Vector3& center, float radius);
- void Define(const BoundingBox& box);
- void Define(const Frustum& frustum);
- void Define(const Polyhedron& poly);
-
- void Merge(const Vector3& point);
- void Merge(const BoundingBox& box);
- void Merge(const Frustum& frustum);
- void Merge(const Polyhedron& poly);
- void Merge(const Sphere& sphere);
-
- void Clear();
-
- Intersection IsInside(const Vector3& point) const;
- Intersection IsInside(const Sphere& sphere) const;
- Intersection IsInsideFast(const Sphere& sphere) const;
- Intersection IsInside(const BoundingBox& box) const;
- Intersection IsInsideFast(const BoundingBox& box) const;
-
- float Distance(const Vector3& point) const;
-
- Vector3 center_ @ center;
- float radius_ @ radius;
- bool defined_ @ defined;
- };
|