Lumino
ln::Box Struct Reference

直方体を定義します。(axis-aligned bounding box) More...

#include <Geometries.hpp>

Public Member Functions

 Box ()
 各要素に 0.0 を設定してインスタンスを初期化します。
 
 Box (float sizeXYZ)
 各軸のサイズを指定して正方形を作成します。
 
 Box (const Vector3 &center, float sizeXYZ)
 中心座標と各軸のサイズを指定して正方形を作成します。
 
 Box (const Vector3 &center, float width, float height, float depth)
 中心座標と各軸のサイズを指定して正方形を作成します。
 
 Box (const Vector3 &min, const Vector3 &max)
 最小値と最大値を指定してボックスを作成します。
 
bool isEmpty () const
 サイズが 0 以下であるかを判定します。
 
Vector3 minPoint () const
 境界の最小値を取得します。
 
Vector3 maxPoint () const
 境界と最大値を取得します。
 
void getMinMax (Vector3 *outMin, Vector3 *outMax) const
 境界の最小値と最大値を取得します。
 

Public Attributes

Vector3 center
 中心座標
 
float width
 X 軸の範囲
 
float height
 Y 軸の範囲
 
float depth
 Z 軸の範囲
 

Detailed Description

直方体を定義します。(axis-aligned bounding box)


The documentation for this struct was generated from the following file: