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

.
.
::
..RotatePositionVector3 Method (Single, Vector3, Vector3)
gradient

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

NOTE: The Pivot Point and Position's Z-values are ignored.

This function is provided for convenience when using 3D Vectors in 2D coordinate systems.

Namespace: DPSF

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

collapse_allSyntax

C#

public static Vector3 RotatePositionVector3(

 float fRotation,

 Vector3 sPivotPoint,

 Vector3 sPosition

)

Visual Basic

Public Shared Function RotatePositionVector3 (

 fRotation As Single,

 sPivotPoint As Vector3,

 sPosition As Vector3

As Vector3

Visual C++

public:

static Vector3 RotatePositionVector3(

 float fRotation,

 Vector3 sPivotPoint,

 Vector3 sPosition

)

Parameters

fRotation

Type: System..::..Single

The Rotation in radians to rotate around the Pivot Point by

sPivotPoint

Type: Vector3

The Point to Rotate around. NOTE: The Z-value is ignored, since this is a 2D rotation.

sPosition

Type: Vector3

The current Position of the object. NOTE: The Z-value is ignored and will not be changed, since this is a 2D rotation.

Return Value

Type: Vector3

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

collapse_allSee Also

PivotPoint2D Class

PivotPoint2D Members

RotatePositionVector3 Overload

DPSF Namespace

footer

Send comments on this topic to
Dan@DansKingdom.com