操作方法は昨日と同じです。 AABBは頂点の最小値と最大値を引っ張ってきて、 比較するだけなので、判定処理は簡単ですね。 むしろ、箱を表示するのに手間がかかりました…(´∀`; #include <math.h> #include <string> #include <iostream> #include <glut.h> #include <ctype.h> using namespace std; /** * 3次元ベクトル構造体 */ struct Vec3 { float x, y, z; Vec3(float x=0, float y=0, float z=0){this->x=x; this->y=y; this->z=z;} Vec3 operator +(Vec3 &vec) {return Vec3(this->x+vec.x, this->y+vec.y, this->