轴角转四元数

数学
Both Server and Client
Both Mobile and PC

将轴角表示的旋转转化为四元数

声明

func AxisAngleToQuaternion(axis Vector3, angle float) Quaternion
go

参数

输入

名称 类型 描述
旋转轴 Vector3 旋转轴
圆心角 Float 绕旋转轴顺时针转动的角度

返回

类型 描述
Quaternion 返回的四元数