Transform Methods

SFML.Net

Transform Methods

The Transform type exposes the following members.

Methods
  Name Description
Public method 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.
Public method Equals
Indicates whether this instance and a specified object are equal.
(Inherited from ValueType.)
Public method GetHashCode
Returns the hash code for this instance.
(Inherited from ValueType.)
Public method GetInverse
Return the inverse of the transform. If the inverse cannot be computed, an identity transform is returned.
Public method GetType
Gets the Type of the current instance.
(Inherited from Object.)
Public method Rotate(Single)
Combine the current transform with a rotation.
Public method 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).
Public method 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).
Public method Scale(Vector2f)
Combine the current transform with a scaling.
Public method Scale(Single, Single)
Combine the current transform with a scaling.
Public method 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).
Public method 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).
Public method ToString
Provide a string describing the object
(Overrides ValueTypeToString.)
Public method TransformPoint(Vector2f)
Transform a 2D point.
Public method TransformPoint(Single, Single)
Transform a 2D point.
Public method 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.
Public method Translate(Vector2f)
Combine the current transform with a translation.
Public method Translate(Single, Single)
Combine the current transform with a translation.
Top
See Also