Loading...
Searching...
No Matches
Vector2.hpp
Go to the documentation of this file.
7// In no event will the authors be held liable for any damages arising from the use of this software.
constexpr T cross(Vector2 rhs) const
Z component of the cross product of two 2D vectors.
Vector2(T r, Angle phi)
Construct the vector from polar coordinates (floating-point).
constexpr Vector2 componentWiseDiv(Vector2 rhs) const
Component-wise division of *this and rhs.
constexpr Vector2< T > operator+(Vector2< T > left, Vector2< T > right)
Overload of binary operator+.
Angle angleTo(Vector2 rhs) const
Signed angle from *this to rhs (floating-point).
constexpr Vector2< T > operator-(Vector2< T > right)
Overload of unary operator-.
constexpr Vector2 projectedOnto(Vector2 axis) const
Projection of this vector onto axis (floating-point).
constexpr bool operator==(Vector2< T > left, Vector2< T > right)
Overload of binary operator==.
constexpr Vector2< T > operator-(Vector2< T > left, Vector2< T > right)
Overload of binary operator-.
constexpr Vector2< T > & operator*=(Vector2< T > &left, T right)
Overload of binary operator*=.
constexpr Vector2< T > & operator+=(Vector2< T > &left, Vector2< T > right)
Overload of binary operator+=.
constexpr Vector2< T > & operator-=(Vector2< T > &left, Vector2< T > right)
Overload of binary operator-=.
Vector2 normalized() const
Vector with same direction but length 1 (floating-point).
constexpr Vector2 componentWiseMul(Vector2 rhs) const
Component-wise multiplication of *this and rhs.
constexpr Vector2< T > & operator/=(Vector2< T > &left, T right)
Overload of binary operator/=.
constexpr bool operator!=(Vector2< T > left, Vector2< T > right)
Overload of binary operator!=.
constexpr Vector2< T > operator*(Vector2< T > left, T right)
Overload of binary operator*.
constexpr Vector2< T > operator*(T left, Vector2< T > right)
Overload of binary operator*.
constexpr Vector2< T > operator/(Vector2< T > left, T right)
Overload of binary operator/.
Definition AudioResource.hpp:36