VectorExtensions.RotateAround Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
RotateAround(Vector3, Vector3, Quaternion) |
Rotate a given point around a pivot at a particular rotation. |
RotateAround(Vector3, Vector3, Vector3) |
Rotate a given point around a pivot at a particular rotation. |
RotateAround(Vector3, Vector3, Quaternion)
Rotate a given point around a pivot at a particular rotation.
public:
[System::Runtime::CompilerServices::Extension]
static UnityEngine::Vector3 RotateAround(UnityEngine::Vector3 point, UnityEngine::Vector3 pivot, UnityEngine::Quaternion rotation);
public static UnityEngine.Vector3 RotateAround (this UnityEngine.Vector3 point, UnityEngine.Vector3 pivot, UnityEngine.Quaternion rotation);
static member RotateAround : UnityEngine.Vector3 * UnityEngine.Vector3 * UnityEngine.Quaternion -> UnityEngine.Vector3
<Extension()>
Public Function RotateAround (point As Vector3, pivot As Vector3, rotation As Quaternion) As Vector3
Parameters
- point
- UnityEngine.Vector3
The 3D point to be rotated.
- pivot
- UnityEngine.Vector3
The 3D point that is the pivot.
- rotation
- UnityEngine.Quaternion
The quaternion representing the rotation to be preformed.
Returns
A new 3D vector containing the rotated point.
Applies to
RotateAround(Vector3, Vector3, Vector3)
Rotate a given point around a pivot at a particular rotation.
public:
[System::Runtime::CompilerServices::Extension]
static UnityEngine::Vector3 RotateAround(UnityEngine::Vector3 point, UnityEngine::Vector3 pivot, UnityEngine::Vector3 eulerAngles);
public static UnityEngine.Vector3 RotateAround (this UnityEngine.Vector3 point, UnityEngine.Vector3 pivot, UnityEngine.Vector3 eulerAngles);
static member RotateAround : UnityEngine.Vector3 * UnityEngine.Vector3 * UnityEngine.Vector3 -> UnityEngine.Vector3
<Extension()>
Public Function RotateAround (point As Vector3, pivot As Vector3, eulerAngles As Vector3) As Vector3
Parameters
- point
- UnityEngine.Vector3
The 3D point to be rotated.
- pivot
- UnityEngine.Vector3
The 3D point that is the pivot.
- eulerAngles
- UnityEngine.Vector3
Returns
A new 3D vector containing the rotated point.