Suppressions of getters
Former-commit-id: db5ae144a8eb8794e7df9981805d2250bbd8b4ee
This commit is contained in:
parent
ba7f3606a0
commit
60d045e139
|
|
@ -27,9 +27,6 @@ class NzPlane
|
|||
T Distance(const NzVector3<T>& point) const;
|
||||
T Distance(T x, T y, T z) const;
|
||||
|
||||
NzVector3<T> GetNormal() const;
|
||||
T GetDistance() const;
|
||||
|
||||
NzPlane& Set(T normalX, T normalY, T normalZ, T Distance);
|
||||
NzPlane& Set(const T plane[4]);
|
||||
NzPlane& Set(const NzPlane& plane);
|
||||
|
|
|
|||
|
|
@ -58,18 +58,6 @@ T NzPlane<T>::Distance(T x, T y, T z) const
|
|||
return Distance(NzVector3<T>(x, y, z));
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
NzVector3<T> NzPlane<T>::GetNormal() const
|
||||
{
|
||||
return normal;
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
T NzPlane<T>::GetDistance() const
|
||||
{
|
||||
return distance;
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
NzPlane<T>& NzPlane<T>::Set(T normalX, T normalY, T normalZ, T D)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -29,8 +29,6 @@ template<typename T> class NzRay
|
|||
~NzRay() = default;
|
||||
|
||||
NzVector3<T> GetClosestPoint(const NzVector3<T>& point) const;
|
||||
NzVector3<T> GetDirection() const;
|
||||
NzVector3<T> GetOrigin() const;
|
||||
NzVector3<T> GetPoint(T lambda) const;
|
||||
|
||||
bool Intersect(const NzBox<T>& box, NzVector3<T> * hitPoint = nullptr, NzVector3<T> * hitSecondPoint = nullptr) const;
|
||||
|
|
|
|||
|
|
@ -55,18 +55,6 @@ NzVector3<T> NzRay<T>::GetClosestPoint(const NzVector3<T>& point) const
|
|||
return GetPoint(proj/vsq);
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
NzVector3<T> NzRay<T>::GetDirection() const
|
||||
{
|
||||
return direction;
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
NzVector3<T> NzRay<T>::GetOrigin() const
|
||||
{
|
||||
return origin;
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
NzVector3<T> NzRay<T>::GetPoint(T lambda) const
|
||||
{
|
||||
|
|
@ -302,7 +290,7 @@ NzString NzRay<T>::ToString() const
|
|||
{
|
||||
NzStringStream ss;
|
||||
|
||||
return ss << "Ray(" << origin.x << ", " << origin.y << ", " << origin.z << " | direction: " << direction.x << ", " << direction.y << ", " << direction.z << ')';
|
||||
return ss << "Ray(origin: " << origin.ToString() << ", direction: " << direction.ToString() << ")";
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
|
|
|
|||
|
|
@ -39,7 +39,6 @@ class NzSphere
|
|||
NzVector3<T> GetNegativeVertex(const NzVector3<T>& normal) const;
|
||||
NzVector3<T> GetPosition() const;
|
||||
NzVector3<T> GetPositiveVertex(const NzVector3<T>& normal) const;
|
||||
T GetRadius() const;
|
||||
|
||||
bool Intersect(const NzBox<T>& box) const;
|
||||
bool Intersect(const NzSphere& sphere) const;
|
||||
|
|
|
|||
|
|
@ -118,12 +118,6 @@ NzVector3<T> NzSphere<T>::GetPositiveVertex(const NzVector3<T>& normal) const
|
|||
return pos;
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
T NzSphere<T>::GetRadius() const
|
||||
{
|
||||
return radius;
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
bool NzSphere<T>::Intersect(const NzBox<T>& box) const
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue