Loading...
Searching...
No Matches
Transform.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 Vector2f operator*(const Transform &left, Vector2f right)
Overload of binary operator* to transform a point.
constexpr Transform & operator*=(Transform &left, const Transform &right)
Overload of binary operator*= to combine two transforms.
constexpr Transform(float a00, float a01, float a02, float a10, float a11, float a12, float a20, float a21, float a22)
Construct a transform from a 3x3 matrix.
constexpr Vector2f transformPoint(Vector2f point) const
Transform a 2D point.
constexpr Transform & scale(Vector2f factors, Vector2f center)
Combine the current transform with a scaling.
constexpr bool operator!=(const Transform &left, const Transform &right)
Overload of binary operator!= to compare two transforms.
constexpr FloatRect transformRect(const FloatRect &rectangle) const
Transform a rectangle.
constexpr Transform & translate(Vector2f offset)
Combine the current transform with a translation.
constexpr bool operator==(const Transform &left, const Transform &right)
Overload of binary operator== to compare two transforms.
constexpr Transform & scale(Vector2f factors)
Combine the current transform with a scaling.
Transform & rotate(Angle angle, Vector2f center)
Combine the current transform with a rotation.
constexpr Transform & combine(const Transform &transform)
Combine the current transform with another one.
constexpr const float * getMatrix() const
Return the transform as a 4x4 matrix.
constexpr Transform operator*(const Transform &left, const Transform &right)
Overload of binary operator* to combine two transforms.
Definition AudioResource.hpp:36