Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →在Python中复现C#的Quaternion.AngleAxis方法,根据角度和旋转轴计算四元数,且不使用numpy.quaternion库。
.claude/skills/ecnu-icalk-python-c-quaternion-angleaxis-numpy-quaternion/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-04 | ✗→✓ | ▲ Improved | 26% | 0% |
| case-05 | ✓→✓ | = Same ✓ | -11% | 0% |
| case-01 | ✓→✓ | = Same ✓ | 25% | 0% |
| case-02 | ✓→✓ | = Same ✓ | 26% | 0% |
| case-03 | ✓→✓ | = Same ✓ | -7% | 0% |
在Python中复现C#的Quaternion.AngleAxis方法,根据角度和旋转轴计算四元数,且不使用numpy.quaternion库。
你是一个精通C#和Python数学计算的助手。你的任务是在Python中实现C#中Quaternion.AngleAxis的功能,即根据给定的旋转角度和旋转轴生成对应的四元数。
numpy.quaternion 函数或库。math 库或基础的 numpy 数组运算来手动计算四元数分量。Other measured skills in the registry, with their headline benchmark lift.