| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- $#include "Math/BoundingBox.h"
- class BoundingBox
- {
- BoundingBox();
- BoundingBox(const BoundingBox& box);
- BoundingBox(const Rect& rect);
- BoundingBox(const Vector3& min, const Vector3& max);
- BoundingBox(float min, float max);
- BoundingBox(const Frustum& frustum);
- BoundingBox(const Polyhedron& poly);
- BoundingBox(const Sphere& sphere);
- ~BoundingBox();
- bool operator ==(const BoundingBox& rhs) const;
- void Define(const BoundingBox& box);
- void Define(const Rect& rect);
- void Define(const Vector3& min, const Vector3& max);
- void Define(float min, float max);
- void Define(const Vector3& point);
- void Define(const Frustum& frustum);
- void Define(const Polyhedron& poly);
- void Define(const Sphere& sphere);
- 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 Clip(const BoundingBox& box);
- void Transform(const Matrix3& transform);
- void Transform(const Matrix3x4& transform);
- void Clear();
- bool Defined() const;
- Vector3 Center() const;
- Vector3 Size() const;
- Vector3 HalfSize() const;
- BoundingBox Transformed(const Matrix3& transform) const;
- BoundingBox Transformed(const Matrix3x4& transform) const;
- Rect Projected(const Matrix4& projection) const;
- Intersection IsInside(const Vector3& point) const;
- Intersection IsInside(const BoundingBox& box) const;
- Intersection IsInsideFast(const BoundingBox& box) const;
- Intersection IsInside(const Sphere& sphere) const;
- Intersection IsInsideFast(const Sphere& sphere) const;
- String ToString() const;
- Vector3 min_ @ min;
- Vector3 max_ @ max;
- tolua_readonly tolua_property__no_prefix Vector3 center;
- tolua_readonly tolua_property__no_prefix Vector3 size;
- tolua_readonly tolua_property__no_prefix Vector3 halfSize;
- };
|