More Math cleanup

This commit is contained in:
SirLynix
2022-12-18 16:33:05 +01:00
parent a1e62adb71
commit 5ca7b398c2
15 changed files with 104 additions and 454 deletions

View File

@@ -55,6 +55,18 @@ namespace Nz
{
}
/*!
* \brief Constructs a Rect object from a vector representing its length
* The position will be set to zero
*
* \param lengths (Width, Height) of the rect
*/
template<typename T>
Rect<T>::Rect(const Vector2<T>& lengths) :
Rect(Vector2<T>::Zero(), lengths)
{
}
/*!
* \brief Constructs a Rect object from two vector representing position and lengths
*