Vector3Ext.GetRotationAround Method (Vector3, Vector3, Vector3, Single)

Computes the rotation of a point around a pivot and an axis.

Namespace: UltimateXR.Extensions.Unity.Math
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0

Syntax

C#

public static Vector3 GetRotationAround(
	this Vector3 point,
	Vector3 pivot,
	Vector3 axis,
	float degrees
)

Parameters

 

point
Type: Vector3
Point to rotate
pivot
Type: Vector3
Pivot to rotate it around to
axis
Type: Vector3
The rotation axis to use for the rotation
degrees
Type: System.Single
Rotation angle

Return Value

Type: Vector3
Rotated point

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Vector3. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also

Reference

Vector3Ext Class
GetRotationAround Overload
UltimateXR.Extensions.Unity.Math Namespace