SFML.Net
Transform Structure |
Define a 3x3 transform matrix
Namespace: SFML.Graphics
Assembly: sfmlnet-graphics-2 (in sfmlnet-graphics-2.dll) Version: 2.2.0.0 (2.2.0)

The Transform type exposes the following members.


Name | Description | |
---|---|---|
![]() | Combine |
Combine the current transform with another one.
The result is a transform that is equivalent to applying
this followed by transform. Mathematically, it is
equivalent to a matrix multiplication.
|
![]() | Equals |
Indicates whether this instance and a specified object are equal.
(Inherited from ValueType.) |
![]() | GetHashCode |
Returns the hash code for this instance.
(Inherited from ValueType.) |
![]() | GetInverse |
Return the inverse of the transform.
If the inverse cannot be computed, an identity transform
is returned.
|
![]() | GetType |
Gets the Type of the current instance.
(Inherited from Object.) |
![]() | Rotate(Single) |
Combine the current transform with a rotation.
|
![]() | Rotate(Single, Vector2f) |
Combine the current transform with a rotation.
The center of rotation is provided for convenience as a second
argument, so that you can build rotations around arbitrary points
more easily (and efficiently) than the usual
Translate(-center); Rotate(angle); Translate(center).
|
![]() | Rotate(Single, Single, Single) |
Combine the current transform with a rotation.
The center of rotation is provided for convenience as a second
argument, so that you can build rotations around arbitrary points
more easily (and efficiently) than the usual
Translate(-center); Rotate(angle); Translate(center).
|
![]() | Scale(Vector2f) |
Combine the current transform with a scaling.
|
![]() | Scale(Single, Single) |
Combine the current transform with a scaling.
|
![]() | Scale(Vector2f, Vector2f) |
Combine the current transform with a scaling.
The center of scaling is provided for convenience as a second
argument, so that you can build scaling around arbitrary points
more easily (and efficiently) than the usual
Translate(-center); Scale(factors); Translate(center).
|
![]() | Scale(Single, Single, Single, Single) |
Combine the current transform with a scaling.
The center of scaling is provided for convenience as a second
argument, so that you can build scaling around arbitrary points
more easily (and efficiently) than the usual
Translate(-center); Scale(factors); Translate(center).
|
![]() | ToString |
Provide a string describing the object
(Overrides ValueTypeToString.) |
![]() | TransformPoint(Vector2f) |
Transform a 2D point.
|
![]() | TransformPoint(Single, Single) |
Transform a 2D point.
|
![]() | TransformRect |
Transform a rectangle.
Since SFML doesn't provide support for oriented rectangles,
the result of this function is always an axis-aligned
rectangle. Which means that if the transform contains a
rotation, the bounding rectangle of the transformed rectangle
is returned.
|
![]() | Translate(Vector2f) |
Combine the current transform with a translation.
|
![]() | Translate(Single, Single) |
Combine the current transform with a translation.
|

Name | Description | |
---|---|---|
![]() ![]() | Multiply(Transform, Transform) |
Overload of binary operator * to combine two transforms.
This call is equivalent to calling new Transform(left).Combine(right).
|
![]() ![]() | Multiply(Transform, Vector2f) |
Overload of binary operator * to transform a point.
This call is equivalent to calling left.TransformPoint(right).
|

