Math/Box: Rename FromExtends to FromExtents
This commit is contained in:
@@ -217,7 +217,7 @@ namespace Nz
|
||||
{
|
||||
obb.Update(transformMatrix);
|
||||
|
||||
aabb = Box<T>::FromExtends(obb(0), obb(1));
|
||||
aabb = Box<T>::FromExtents(obb(0), obb(1));
|
||||
for (unsigned int i = 2; i < 8; ++i)
|
||||
aabb.ExtendTo(obb(i));
|
||||
}
|
||||
@@ -232,7 +232,7 @@ namespace Nz
|
||||
{
|
||||
obb.Update(translation);
|
||||
|
||||
aabb = Box<T>::FromExtends(obb(0), obb(1));
|
||||
aabb = Box<T>::FromExtents(obb(0), obb(1));
|
||||
for (unsigned int i = 2; i < 8; ++i)
|
||||
aabb.ExtendTo(obb(i));
|
||||
}
|
||||
|
||||
@@ -84,7 +84,7 @@ namespace Nz
|
||||
constexpr bool operator!=(const Box& box) const;
|
||||
|
||||
static constexpr Box ApproxEqual(const Box& lhs, const Box& rhs, T maxDifference = std::numeric_limits<T>::epsilon());
|
||||
static constexpr Box FromExtends(const Vector3<T>& vec1, const Vector3<T>& vec2);
|
||||
static constexpr Box FromExtents(const Vector3<T>& vec1, const Vector3<T>& vec2);
|
||||
static constexpr Box Lerp(const Box& from, const Box& to, T interpolation);
|
||||
static constexpr Box Invalid();
|
||||
static constexpr Box Zero();
|
||||
|
||||
@@ -610,7 +610,7 @@ namespace Nz
|
||||
std::abs(matrix(0,1)) * halfSize.x + std::abs(matrix(1,1)) * halfSize.y + std::abs(matrix(2,1)) * halfSize.z,
|
||||
std::abs(matrix(0,2)) * halfSize.x + std::abs(matrix(1,2)) * halfSize.y + std::abs(matrix(2,2)) * halfSize.z);
|
||||
|
||||
return operator=(Boxf::FromExtends(center - halfSize, center + halfSize));
|
||||
return operator=(Boxf::FromExtents(center - halfSize, center + halfSize));
|
||||
}
|
||||
|
||||
/*!
|
||||
@@ -692,7 +692,7 @@ namespace Nz
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
constexpr Box<T> Box<T>::FromExtends(const Vector3<T>& vec1, const Vector3<T>& vec2)
|
||||
constexpr Box<T> Box<T>::FromExtents(const Vector3<T>& vec1, const Vector3<T>& vec2)
|
||||
{
|
||||
Box box;
|
||||
box.x = std::min(vec1.x, vec2.x);
|
||||
|
||||
@@ -257,7 +257,7 @@ namespace Nz
|
||||
min.Minimize(corners[static_cast<BoxCorner>(i)]);
|
||||
}
|
||||
|
||||
return Box<T>::FromExtends(min, max);
|
||||
return Box<T>::FromExtents(min, max);
|
||||
}
|
||||
|
||||
/*!
|
||||
|
||||
Reference in New Issue
Block a user