cBoundingBox: Fix tolua warning (#4361)
tolua was warning about no support for `operator =`. Ref: #4360
This commit is contained in:
parent
466d986e5e
commit
a2547bf1fe
@ -59,27 +59,6 @@ cBoundingBox::cBoundingBox(Vector3d a_Pos, double a_CubeLength) :
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
cBoundingBox::cBoundingBox(const cBoundingBox & a_Orig) :
|
|
||||||
m_Min(a_Orig.m_Min),
|
|
||||||
m_Max(a_Orig.m_Max)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
cBoundingBox & cBoundingBox::operator=(const cBoundingBox & a_Other)
|
|
||||||
{
|
|
||||||
m_Min = a_Other.m_Min;
|
|
||||||
m_Max = a_Other.m_Max;
|
|
||||||
return *this;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
void cBoundingBox::Move(double a_OffX, double a_OffY, double a_OffZ)
|
void cBoundingBox::Move(double a_OffX, double a_OffY, double a_OffZ)
|
||||||
{
|
{
|
||||||
m_Min.x += a_OffX;
|
m_Min.x += a_OffX;
|
||||||
|
@ -31,9 +31,10 @@ public:
|
|||||||
For example: cBoundingBox([0, 0, 0], 6, 6, -3) would create a bounding cube from (-3, -3, -3) to (3, 3, 3). */
|
For example: cBoundingBox([0, 0, 0], 6, 6, -3) would create a bounding cube from (-3, -3, -3) to (3, 3, 3). */
|
||||||
cBoundingBox(Vector3d a_Pos, double a_Radius, double a_Height, double a_VerticalOffset);
|
cBoundingBox(Vector3d a_Pos, double a_Radius, double a_Height, double a_VerticalOffset);
|
||||||
cBoundingBox(Vector3d a_Pos, double a_CubeLength);
|
cBoundingBox(Vector3d a_Pos, double a_CubeLength);
|
||||||
cBoundingBox(const cBoundingBox & a_Orig);
|
|
||||||
|
|
||||||
cBoundingBox & operator=(const cBoundingBox & a_Other);
|
#ifdef TOLUA_EXPOSITION // tolua isn't aware of implicitly generated copy constructors
|
||||||
|
cBoundingBox(const cBoundingBox & a_Orig);
|
||||||
|
#endif
|
||||||
|
|
||||||
/** Moves the entire boundingbox by the specified offset */
|
/** Moves the entire boundingbox by the specified offset */
|
||||||
void Move(double a_OffX, double a_OffY, double a_OffZ);
|
void Move(double a_OffX, double a_OffY, double a_OffZ);
|
||||||
|
Loading…
Reference in New Issue
Block a user