mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 09:44:21 +02:00
remove unecessary AACube::operator<()
This commit is contained in:
parent
faf31f268e
commit
7cde6811ca
2 changed files with 0 additions and 9 deletions
|
@ -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:
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue