I am working on a mathematical vector.
I usually inline these types of class function members:
float getY() const { return m_y; }
But are these suitable to be inlined?
float getLength() const { return sqrt(m_x * m_x + m_y * m_y); }
bool isUnitVector() const { return getLength() == 1.0f; }
Vector2D getZeroVector() const { return Vector2D(); }