open source

This commit is contained in:
lvfulong
2020-11-11 16:17:13 +08:00
parent 4d989f3ecb
commit bc4ca748de
2441 changed files with 623057 additions and 2 deletions
@@ -0,0 +1,39 @@
/**
@file JCBoundingSphere.cpp
@brief
@author James
@version 1.0
@date 2016_10_31
*/
#include "JCBoundingSphere.h"
namespace laya
{
JCBoundingSphere::JCBoundingSphere()
{
m_nRadius = 0;
}
//------------------------------------------------------------------------------
JCBoundingSphere::JCBoundingSphere(const Vector3& center, float nRadius)
{
m_kCenter = center;
m_nRadius = nRadius;
}
void JCBoundingSphere::setValues(float* value)
{
m_kCenter.x = value[0];
m_kCenter.y = value[1];
m_kCenter.z = value[2];
m_nRadius = value[3];
}
JCBoundingSphere::~JCBoundingSphere()
{
}
//------------------------------------------------------------------------------
}
//------------------------------------------------------------------------------
//-----------------------------END FILE--------------------------------