PivotPoint2D.RotatePositionAndOrientationVector3 Method (Single, Vector3, Vector3, Single)
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
.
.
::
..RotatePositionAndOrientationVector3 Method (Single, Vector3, Vector3%, Single%)
gradient

Rotates the given Position and Orientation around the Pivot Point, changing the Position and Orientation.

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

NOTE: 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 void RotatePositionAndOrientationVector3(

 float fRotation,

 Vector3 sPivotPoint,

 ref Vector3 srPosition,

 ref float frOrientation

)

Visual Basic

Public Shared Sub RotatePositionAndOrientationVector3 (

 fRotation As Single,

 sPivotPoint As Vector3,

 ByRef srPosition As Vector3,

 ByRef frOrientation As Single

)

Visual C++

public:

static void RotatePositionAndOrientationVector3(

 float fRotation,

 Vector3 sPivotPoint,

 Vector3srPosition,

 floatfrOrientation

)

Parameters

fRotation

Type: System..::..Single

The Rotation in radians to apply to the object

sPivotPoint

Type: Vector3

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

srPosition

Type: Vector3%

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

frOrientation

Type: System..::..Single%

The Orientation (rotation) of the object to be modified

collapse_allSee Also

PivotPoint2D Class

PivotPoint2D Members

RotatePositionAndOrientationVector3 Overload

DPSF Namespace

footer

Send comments on this topic to
Dan@DansKingdom.com