2026-05-17 02:31:11 +03:00
|
|
|
namespace Common;
|
|
|
|
|
|
|
|
|
|
public record Quaternion(float X, float Y, float Z, float W);
|
|
|
|
|
|
2026-06-06 00:42:07 +03:00
|
|
|
public record UShortQuaternion(short W, short X, short Y, short Z)
|
2026-05-17 02:31:11 +03:00
|
|
|
{
|
|
|
|
|
public Quaternion ToRegular()
|
|
|
|
|
{
|
|
|
|
|
return new Quaternion(
|
|
|
|
|
X / 32767f,
|
|
|
|
|
Y / 32767f,
|
|
|
|
|
Z / 32767f,
|
|
|
|
|
W / 32767f
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
};
|