More Math cleanup
This commit is contained in:
@@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user