mirror of
https://github.com/sampletext32/ParkanPlayground.git
synced 2026-08-15 15:07:48 +04:00
16 lines
339 B
C#
16 lines
339 B
C#
namespace Common;
|
|
|
|
public record Quaternion(float X, float Y, float Z, float W);
|
|
|
|
public record UShortQuaternion(short W, short X, short Y, short Z)
|
|
{
|
|
public Quaternion ToRegular()
|
|
{
|
|
return new Quaternion(
|
|
X / 32767f,
|
|
Y / 32767f,
|
|
Z / 32767f,
|
|
W / 32767f
|
|
);
|
|
}
|
|
}; |