![]() |
Springhead
An open source physics engine for virtual reality, haptics and motion generation.
|
バウンディングボックスの実装
#include <PHBody.h>
Public メソッド | |
void | SetBBoxCenterExtent (Vec3f c, Vec3f e) |
バウンディングボックスの設定 | |
void | SetBBoxMinMax (Vec3f bmin, Vec3f bmax) |
バウンディングボックスの設定 | |
void | AddBBox (Vec3f bmin, Vec3f bmax) |
バウンディングボックスの追加 | |
Vec3f | GetBBoxCenter () const |
中心 | |
Vec3f | GetBBoxExtent () const |
大きさ | |
Vec3f | GetBBoxMin () const |
小さい端点 | |
Vec3f | GetBBoxMax () const |
大きい端点 | |
void | GetSupport (const Vec3f &dir, float &minS, float &maxS) |
与えられたベクトルとの内積が最大と最小の点 | |
void | GetBBoxWorldMinMax (Posed &pose, Vec3d &_min, Vec3d &_max) |
SolidのPoseを代入することで,world座標系の最小値,最大値を取得 (注意)バウンディングボックスよりも大きなボックスで判定されてしまう. | |
Static Public メソッド | |
static bool | Intersect (PHBBox &lhs, PHBBox &rhs) |
交差判定 | |