Transform Structure

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)
Syntax
public struct Transform
Public Structure Transform
public value class Transform
[<SealedAttribute>]
type Transform =  struct end

The Transform type exposes the following members.

Constructors
  NameDescription
Public methodTransform
Construct a transform from a 3x3 matrix
Top
Methods
  NameDescription
Public methodCombine
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 methodEquals
Indicates whether this instance and a specified object are equal.
(Inherited from ValueType.)
Public methodGetHashCode
Returns the hash code for this instance.
(Inherited from ValueType.)
Public methodGetInverse
Return the inverse of the transform. If the inverse cannot be computed, an identity transform is returned.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodRotate(Single)
Combine the current transform with a rotation.
Public methodRotate(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 methodRotate(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 methodScale(Vector2f)
Combine the current transform with a scaling.
Public methodScale(Single, Single)
Combine the current transform with a scaling.
Public methodScale(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 methodScale(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 methodToString
Provide a string describing the object
(Overrides ValueTypeToString.)
Public methodTransformPoint(Vector2f)
Transform a 2D point.
Public methodTransformPoint(Single, Single)
Transform a 2D point.
Public methodTransformRect
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 methodTranslate(Vector2f)
Combine the current transform with a translation.
Public methodTranslate(Single, Single)
Combine the current transform with a translation.
Top
Operators
  NameDescription
Public operatorStatic memberMultiply(Transform, Transform)
Overload of binary operator * to combine two transforms. This call is equivalent to calling new Transform(left).Combine(right).
Public operatorStatic memberMultiply(Transform, Vector2f)
Overload of binary operator * to transform a point. This call is equivalent to calling left.TransformPoint(right).
Top
Properties
  NameDescription
Public propertyStatic memberIdentity
The identity transform (does nothing)
Top
See Also