Loading...
Searching...
No Matches
Transform.h
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.
115CSFML_GRAPHICS_API sfVector2f sfTransform_transformPoint(const sfTransform* transform, sfVector2f point);
132CSFML_GRAPHICS_API sfFloatRect sfTransform_transformRect(const sfTransform* transform, sfFloatRect rectangle);
180CSFML_GRAPHICS_API void sfTransform_rotateWithCenter(sfTransform* transform, float angle, float centerX, float centerY);
207CSFML_GRAPHICS_API void sfTransform_scaleWithCenter(sfTransform* transform, float scaleX, float scaleY, float centerX, float centerY);
sfTransform sfTransform_fromMatrix(float a00, float a01, float a02, float a10, float a11, float a12, float a20, float a21, float a22)
Create a new transform from a matrix.
void sfTransform_combine(sfTransform *transform, const sfTransform *other)
Combine two transforms.
sfTransform sfTransform_getInverse(const sfTransform *transform)
Return the inverse of a transform.
sfFloatRect sfTransform_transformRect(const sfTransform *transform, sfFloatRect rectangle)
Apply a transform to a rectangle.
void sfTransform_translate(sfTransform *transform, float x, float y)
Combine a transform with a translation.
void sfTransform_rotateWithCenter(sfTransform *transform, float angle, float centerX, float centerY)
Combine the current transform with a rotation.
void sfTransform_scaleWithCenter(sfTransform *transform, float scaleX, float scaleY, float centerX, float centerY)
Combine the current transform with a scaling.
void sfTransform_scale(sfTransform *transform, float scaleX, float scaleY)
Combine the current transform with a scaling.
sfVector2f sfTransform_transformPoint(const sfTransform *transform, sfVector2f point)
Apply a transform to a 2D point.
void sfTransform_rotate(sfTransform *transform, float angle)
Combine the current transform with a rotation.
void sfTransform_getMatrix(const sfTransform *transform, float *matrix)
Return the 4x4 matrix of a transform.
sfBool sfTransform_equal(sfTransform *left, sfTransform *right)
Compare two transforms for equality.
sfFloatRect and sfIntRect are utility classes for manipulating rectangles.
Definition Rect.h:41