ランタイム: Mix/Geometry/AABB.h Source File

ランタイム

- Main Page
- Related Pages
- Namespaces
- Classes
- Files

- File List
- File Members

AABB.h
Go to the documentation of this file.
1 #pragma once
2
5
6 namespace Mix{ namespace Geometry{
7
8 class Sphere;
9
12 class _MIX_DLL_API AABB
13 {
14 public:
15 Mix::Vector3 min;
16 Mix::Vector3 max;
17 Mix::Vector3 center;
18 Mix::Vector3 points[8];
19
20 public:
22 AABB( void );
26 AABB( const Mix::Vector3& _min, const Mix::Vector3& _max );
29 AABB( const Mix::Geometry::Sphere& sphere );
30
31 public:
34 AABB& ComputeMinMax( void );
38 AABB& ComputeMinMax( const Mix::Matrix4x4& mat );
41 AABB& ComputePoints( void );
45 AABB& ComputePoints( const Mix::Matrix4x4& mat );
46
51 AABB& operator = ( const Mix::Geometry::Sphere& sphere );
52
56 AABB& operator += ( const Mix::Geometry::AABB& aabb );
60 AABB& operator += ( const Mix::Geometry::Sphere& sphere );
64 AABB& operator += ( const Mix::Vector3& point );
65
69 AABB operator + ( const Mix::Geometry::AABB& aabb ) const;
73 AABB operator + ( const Mix::Geometry::Sphere& sphere ) const;
77 AABB operator + ( const Mix::Vector3& point ) const;
78 };
79
80 }}
Mix::Vector3
3次元浮動小数点ベクトルクラス
Definition: Vector3.h:12
Mix::Geometry::AABB::center
Mix::Vector3 center
中心
Definition: AABB.h:17
Mix::Geometry::AABB::max
Mix::Vector3 max
最大値
Definition: AABB.h:16
Mix::Geometry::AABB
AABBクラス
Definition: AABB.h:12
Mix::Geometry::Sphere
球クラス
Definition: Sphere.h:12
Mix::Matrix4x4
4x4行列クラス
Definition: Matrix4x4.h:12
Mix::Geometry::AABB::min
Mix::Vector3 min
最小値
Definition: AABB.h:15
Mix
ミックス
Definition: AtomicValue.h:6
_MIX_DLL_API
#define _MIX_DLL_API
DLLインポート定義
Definition: Common.h:38