first commit
This commit is contained in:
22
NitroxModel/DataStructures/Unity/NitroxVector4.cs
Normal file
22
NitroxModel/DataStructures/Unity/NitroxVector4.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using System;
|
||||
|
||||
namespace NitroxModel.DataStructures.Unity
|
||||
{
|
||||
public struct NitroxVector4
|
||||
{
|
||||
public float X;
|
||||
public float Y;
|
||||
public float Z;
|
||||
public float W;
|
||||
|
||||
public NitroxVector4(float x, float y, float z, float w)
|
||||
{
|
||||
W = w;
|
||||
X = x;
|
||||
Y = y;
|
||||
Z = z;
|
||||
}
|
||||
|
||||
public float Magnitude => (float)Math.Sqrt(X * X + Y * Y + Z * Z + W * W);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user