Added Frustum::Contains(AxisAlignedBox)

Fixed Frustum::Contains, Intersect and Plane::Distance not being const


Former-commit-id: e219a10fac78f50743f19ebe523345bcac0b0fb7
This commit is contained in:
Lynix
2013-02-20 16:41:29 +01:00
parent 6bfe9c8890
commit 28ea9fc9a0
4 changed files with 55 additions and 14 deletions

View File

@@ -47,13 +47,13 @@ NzPlane<T>::NzPlane(const NzPlane<U>& plane)
}
template<typename T>
T NzPlane<T>::Distance(const NzVector3<T>& point)
T NzPlane<T>::Distance(const NzVector3<T>& point) const
{
return normal.DotProduct(point) + distance;
}
template<typename T>
T NzPlane<T>::Distance(T x, T y, T z)
T NzPlane<T>::Distance(T x, T y, T z) const
{
return Distance(NzVector3<T>(x, y, z));
}