1
0

cBoundingBox: Fix tolua warning (#4361)

tolua was warning about no support for `operator =`.
Ref: #4360
This commit is contained in:
peterbell10 2019-08-08 19:49:00 +01:00 committed by GitHub
parent 466d986e5e
commit a2547bf1fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 23 deletions

View File

@ -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;

View File

@ -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);