SFML.Net
TransformRotate Method (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).
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, float centerX, float centerY )
Public Sub Rotate ( angle As Single, centerX As Single, centerY As Single )
public: void Rotate( float angle, float centerX, float centerY )
member Rotate : angle : float32 * centerX : float32 * centerY : float32 -> unit
Parameters
- angle
- Type: SystemSingle
Rotation angle, in degrees - centerX
- Type: SystemSingle
X coordinate of the center of rotation - centerY
- Type: SystemSingle
Y coordinate of the center of rotation
