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
Syntaxpublic 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:
Vector3The rotated vector.
See Also