Click or drag to resize

Vector3Rotated Method

Rotates this vector around a given `axis` vector by `phi` radians. The `axis` vector must be a normalized vector.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public Vector3 Rotated(
	Vector3 axis,
	float phi
)

Parameters

axis
Type: GodotVector3
The vector to rotate around. Must be normalized.
phi
Type: SystemSingle
The angle to rotate by, in radians.

Return Value

Type: Vector3
The rotated vector.
See Also