ランタイム
AABB.h
Go to the documentation of this file.
1 #pragma once
2 
5 
6 namespace Mix{ namespace Geometry{
7 
8  class Sphere;
9 
13  {
14  public:
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 }}
3次元浮動小数点ベクトルクラス
Definition: Vector3.h:12
Mix::Vector3 center
中心
Definition: AABB.h:17
Mix::Vector3 max
最大値
Definition: AABB.h:16
AABBクラス
Definition: AABB.h:12
球クラス
Definition: Sphere.h:12
4x4行列クラス
Definition: Matrix4x4.h:12
Mix::Vector3 min
最小値
Definition: AABB.h:15
ミックス
Definition: AtomicValue.h:6
#define _MIX_DLL_API
DLLインポート定義
Definition: Common.h:38