Download CommonLua/LuaExportedDocs/Global/quaternion.lua from sirnii/myspace: direct link, hf CLI and curl.
- Browser
- Download file 881 Bytes
-
https://huggingface.co/spaces/sirnii/myspace/resolve/main/CommonLua/LuaExportedDocs/Global/quaternion.lua
- Command line
-
hf download hf://spaces/sirnii/myspace/CommonLua/LuaExportedDocs/Global/quaternion.lua
-
curl -L -o quaternion.lua https://huggingface.co/spaces/sirnii/myspace/resolve/main/CommonLua/LuaExportedDocs/Global/quaternion.lua
881 Bytes
| --- Quaternion functions. | |
| --- Returns a quaternion with the specified axis and angle | |
| -- @cstyle quaternion quaternion(point axis, int angle). | |
| -- @param axis point | |
| -- @param angle integer | |
| -- @return quaternion. | |
| function quaternion(axis, angle) | |
| end | |
| --- Returns a normalized quaternion | |
| -- @cstyle quaternion quaternion:Norm(quaternion q). | |
| -- @return quaternion. | |
| function quaternion:Norm() | |
| end | |
| --- Returns an inverse quaternion | |
| -- @cstyle quaternion quaternion:Inv(quaternion q). | |
| -- @return quaternion. | |
| function quaternion:Inv() | |
| end | |
| --- Returns the axis and angle composing the quaternion | |
| -- @cstyle point, int quaternion:GetAxisAngle(quaternion q). | |
| -- @return point, int. | |
| function quaternion:GetAxisAngle() | |
| end | |
| --- Check if the given parameter is a quaternion | |
| -- @cstyle bool IsQuaternion(quaternion q). | |
| -- @param q quaternion. | |
| -- @return bool. | |
| function IsQuaternion(q) | |
| end | |