/** SGX

The   sss    gggg x   x   
     s      g      x x    Engine
      sss   g  gg   x
         s  g   g  x x          Copyright 1995-2008.
     ssss    gggg x   x         Steven Goodwin. All Rights Reserved.
    
This version has been released under the GNU Public License v2.0.

Please see the license files for details.

File: src/domains/graphics/primitives/sphere.cpp

*/

#include "sgx/core/core.hpp"
#include "domains/graphics/color/color.hpp"
#include "domains/graphics/primitives/primitives.hpp"

void	sgxPrimitiveSphere::getBoundingSphere(sgxVector3 &pos, tREAL32 &radius) const {
	sgxPrimitiveBase::getBoundingSphere(pos, radius);
	radius = m_fRadius;
}

void	sgxPrimitiveSphere::getBoundingBox(sgxVector3 &minpos, sgxVector3 &maxpos) const {
	minpos.x = minpos.y = minpos.z = -m_fRadius;
	maxpos.x = maxpos.y = maxpos.z = m_fRadius;
}
