1
0
Fork 0

Spectre/Math: rename all vector length() and normalize() functions to len() and normal()

This commit is contained in:
Henrik Hautakoski 2023-04-30 23:07:25 +02:00
parent 4a6a20342d
commit 43354fc9b4
7 changed files with 17 additions and 17 deletions

View file

@ -42,12 +42,12 @@ void Transform::reset()
Vector2f Transform::getUpVector() const
{
return Vector2f(m_matrix.e[4], m_matrix.e[5]).normalize();
return Vector2f(m_matrix.e[4], m_matrix.e[5]).normal();
}
Vector2f Transform::getRightVector() const
{
return Vector2f(m_matrix.e[0], m_matrix.e[1]).normalize();
return Vector2f(m_matrix.e[0], m_matrix.e[1]).normal();
}
Transform& Transform::translate(float x, float y)