21 #ifndef LIB_LIGHTMETRICA_AABB_H
22 #define LIB_LIGHTMETRICA_AABB_H
24 #include "math.types.h"
33 LM_FORCE_INLINE
AABB();
34 LM_FORCE_INLINE AABB(
const Math::Vec3& p);
35 LM_FORCE_INLINE AABB(
const Math::Vec3& p1,
const Math::Vec3& p2);
37 LM_FORCE_INLINE
bool Intersect(
const AABB& b)
const;
38 LM_FORCE_INLINE
bool Contain(
const Math::Vec3& p)
const;
39 LM_FORCE_INLINE Math::Float SurfaceArea()
const;
40 LM_FORCE_INLINE Math::Float Volume()
const;
41 LM_FORCE_INLINE
int LongestAxis()
const;
42 LM_FORCE_INLINE AABB Union(
const AABB& b)
const;
43 LM_FORCE_INLINE AABB Union(
const Math::Vec3& p)
const;
47 LM_FORCE_INLINE
const Math::Vec3& operator[](
int i)
const;
48 LM_FORCE_INLINE Math::Vec3& operator[](
int i);
56 #endif // LIB_LIGHTMETRICA_AABB_H