SFML.Net
TransformRotate Method (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).
Namespace: SFML.Graphics
Assembly: sfmlnet-graphics-2 (in sfmlnet-graphics-2.dll) Version: 2.2.0.0 (2.2.0)

public void Rotate( float angle, Vector2f center )
Public Sub Rotate ( angle As Single, center As Vector2f )
public: void Rotate( float angle, Vector2f center )
member Rotate : angle : float32 * center : Vector2f -> unit
Parameters
- angle
- Type: SystemSingle
Rotation angle, in degrees - center
- Type: SFML.SystemVector2f
Center of rotation
