判断立方体轴对齐包围盒(AABB)是否与平面相交。
Yuka.Math.intersectsPlane( box, plane )
box - 必选。表示立方体轴对齐包围盒的对象,包含以下属性:
min - 必选。一个包含 x、y、z 坐标的向量,表示立方体轴对齐包围盒的最小边界。max - 必选。一个包含 x、y、z 坐标的向量,表示立方体轴对齐包围盒的最大边界。plane - 必选。表示平面的对象,包含以下属性:
normal - 必选。一个包含 x、y、z 坐标的向量,表示平面的法向量。constant - 必选。表示平面方程的常数项。true;否则,返回 false。const box = {
  min: new Yuka.Vector3( -1, -1, -1 ),
  max: new Yuka.Vector3( 1, 1, 1 )
};
const plane = {
  normal: new Yuka.Vector3( 0, 1, 0 ),
  constant: 0
};
if ( Yuka.Math.intersectsPlane( box, plane ) ) {
  console.log( 'Box intersects plane.' );
}