RotateAroundPoint Method
Rotates a vector pointToRotate around an arbitrary origin a certain number of degrees, with an arbitrary rotation axis
Syntax
public static Vector3 RotateAroundPoint( Vector3 originPoint, Vector3 pointToRotate, float rotationAngleDegrees, Vector3 rotationAxis )
Parameters
- originPoint
- The origin point.
- pointToRotate
- The point to rotate.
- rotationAngleDegrees
- The rotation angle degrees.
- rotationAxis
- The rotation axis.
Return Value
The rotated point
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also