remove unecessary AACube::operator<()

This commit is contained in:
Andrew Meadows 2014-09-04 15:21:19 -07:00
parent faf31f268e
commit 7cde6811ca
2 changed files with 0 additions and 9 deletions

View file

@ -314,13 +314,6 @@ bool AACube::findCapsulePenetration(const glm::vec3& start, const glm::vec3& end
return true;
}
bool AACube::operator<(const AACube& otherCube) const {
return (_corner.x < otherCube._corner.x
|| (_corner.x == otherCube._corner.x && (_corner.y < otherCube._corner.y
|| (_corner.y == otherCube._corner.y && (_corner.z < otherCube._corner.z
|| _scale < otherCube._scale)))));
}
glm::vec3 AACube::getClosestPointOnFace(const glm::vec3& point, BoxFace face) const {
switch (face) {
case MIN_X_FACE:

View file

@ -60,8 +60,6 @@ public:
AABox clamp(const glm::vec3& min, const glm::vec3& max) const;
AABox clamp(float min, float max) const;
bool operator<(const AACube& otherCube) const; // for qSorted lists of AACubes
private:
glm::vec3 getClosestPointOnFace(const glm::vec3& point, BoxFace face) const;
glm::vec3 getClosestPointOnFace(const glm::vec4& origin, const glm::vec4& direction, BoxFace face) const;