25#ifndef SFML_MATRIX3_HPP
26#define SFML_MATRIX3_HPP
31#include <SFML/Config.hpp>
32#include <SFML/System/Vector2.hpp>
57 float a10,
float a11,
float a12,
58 float a20,
float a21,
float a22);
69 void SetFromTransformations(
const Vector2f& Center,
const Vector2f& Translation,
float Rotation,
const Vector2f& Scale);
79 Vector2f
Transform(
const Vector2f& Point)
const;
107 float operator ()(
unsigned int Row,
unsigned int Col)
const;
108 float& operator ()(
unsigned int Row,
unsigned int Col);
143#include <SFML/Graphics/Matrix3.inl>
Matrix3()
Default constructor (builds an identity matrix).
const float * Get4x4Elements() const
Return the elements of the matrix as a 4x4, in an array of 16 floats.
Matrix3 GetInverse() const
Return the inverse of the matrix.
Vector2f Transform(const Vector2f &Point) const
Transform a point by the matrix.
void SetFromTransformations(const Vector2f &Center, const Vector2f &Translation, float Rotation, const Vector2f &Scale)
Build a matrix from a set of transformations.
static const Matrix3 Identity
Identity matrix.