collapse_all
expand_all

collapse_allexpand_alldropdowndropdownHovercopycodecopycodeHighlight

collapse_all Collapse AllExpand All     dropdown Code: All Code: Multiple Code: C# Code: Visual Basic Code: Visual C++

[TCheckBoxFormControlObj]C#

[TCheckBoxFormControlObj]Visual Basic

[TCheckBoxFormControlObj]
Visual C++
DPSF API Documentation
PivotPoint2D
.
.
::
..RotatePosition Method (Single, Vector2, Vector2)
gradient

Returns the new Position after Rotating the given Position around the specified Pivot Point

Namespace: DPSF

Assembly: DPSF (in DPSF.dll) Version: 2.5.0.0

collapse_allSyntax

C#

public static Vector2 RotatePosition(

 float fRotation,

 Vector2 sPivotPoint,

 Vector2 sPosition

)

Visual Basic

Public Shared Function RotatePosition (

 fRotation As Single,

 sPivotPoint As Vector2,

 sPosition As Vector2

As Vector2

Visual C++

public:

static Vector2 RotatePosition(

 float fRotation,

 Vector2 sPivotPoint,

 Vector2 sPosition

)

Parameters

fRotation

Type: System..::..Single

The Rotation in radians to rotate around the Pivot Point by

sPivotPoint

Type: Vector2

The Point to Rotate around

sPosition

Type: Vector2

The current Position of the object

Return Value

Type: Vector2

Returns the new Position after Rotating the given Position around the specified Pivot Point

collapse_allSee Also

PivotPoint2D Class

PivotPoint2D Members

RotatePosition Overload

DPSF Namespace

footer

Send comments on this topic to
Dan@DansKingdom.com