コード例 #1
0
ファイル: Frustum.cpp プロジェクト: Ahbee/Cinder
bool FrustumT<T>::intersects( const AxisAlignedBox &box ) const
{
	for( size_t i = 0; i < 6; ++i ) {
		if( mFrustumPlanes[i].distance( Vec3T( box.getPositive( vec3( mFrustumPlanes[i].getNormal() ) ) ) ) < 0 )
			return false;
	}

	return true;
}