mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-12-14 23:56:23 +00:00
Draw wire sphere on selected lights to visualize light radius
This commit is contained in:
@@ -153,12 +153,23 @@ std::pair<bool,float> CAABox::IntersectsRay(const CRay &Ray) const
|
||||
return Math::RayBoxIntersection(Ray, *this);
|
||||
}
|
||||
|
||||
bool CAABox::operator==(const CAABox& Other)
|
||||
// ************ OPERATORS ************
|
||||
CAABox CAABox::operator+(const CVector3f& translate) const
|
||||
{
|
||||
return CAABox(mMin + translate, mMax + translate);
|
||||
}
|
||||
|
||||
CAABox CAABox::operator*(float scalar) const
|
||||
{
|
||||
return CAABox(mMin * scalar, mMax * scalar);
|
||||
}
|
||||
|
||||
bool CAABox::operator==(const CAABox& Other) const
|
||||
{
|
||||
return ((mMin == Other.mMin) && (mMax == Other.mMax));
|
||||
}
|
||||
|
||||
bool CAABox::operator!=(const CAABox& Other)
|
||||
bool CAABox::operator!=(const CAABox& Other) const
|
||||
{
|
||||
return (!(*this == Other));
|
||||
}
|
||||
|
||||
@@ -42,8 +42,10 @@ public:
|
||||
std::pair<bool,float> IntersectsRay(const CRay& Ray) const;
|
||||
|
||||
// Operators
|
||||
bool operator==(const CAABox& Other);
|
||||
bool operator!=(const CAABox& Other);
|
||||
CAABox operator+(const CVector3f& translate) const;
|
||||
CAABox operator*(float scalar) const;
|
||||
bool operator==(const CAABox& Other) const;
|
||||
bool operator!=(const CAABox& Other) const;
|
||||
|
||||
// Constants
|
||||
static const CAABox skInfinite;
|
||||
|
||||
Reference in New Issue
Block a user