mirror of
https://github.com/sampletext32/ParkanPlayground.git
synced 2026-08-15 02:57:49 +04:00
docs improvements
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
namespace Common;
|
||||
|
||||
public record Quaternion(float X, float Y, float Z, float W);
|
||||
|
||||
public record UShortQuaternion(ushort X, ushort Y, ushort Z, ushort W)
|
||||
{
|
||||
public Quaternion ToRegular()
|
||||
{
|
||||
return new Quaternion(
|
||||
X / 32767f,
|
||||
Y / 32767f,
|
||||
Z / 32767f,
|
||||
W / 32767f
|
||||
);
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user