rotated

Rotates vec around axis by theta

Vector!(T, 3)
rotated
(
T : float
)
(
Vector!(T, 3) v
,
Vector!(T, 3) x
,)

Parameters

v Vector!(T, 3)

Vector to rotate

x Vector!(T, 3)

Rotation axis

theta T

Angle to rotate in radians

Return Value

Type: Vector!(T, 3)

Rotated vector

Meta