46 lines
778 B
C#
46 lines
778 B
C#
|
|
using System.Runtime.InteropServices;
|
||
|
|
|
||
|
|
namespace XCEngine
|
||
|
|
{
|
||
|
|
[StructLayout(LayoutKind.Sequential)]
|
||
|
|
public struct Vector4
|
||
|
|
{
|
||
|
|
public float X;
|
||
|
|
public float Y;
|
||
|
|
public float Z;
|
||
|
|
public float W;
|
||
|
|
|
||
|
|
public float x
|
||
|
|
{
|
||
|
|
get => X;
|
||
|
|
set => X = value;
|
||
|
|
}
|
||
|
|
|
||
|
|
public float y
|
||
|
|
{
|
||
|
|
get => Y;
|
||
|
|
set => Y = value;
|
||
|
|
}
|
||
|
|
|
||
|
|
public float z
|
||
|
|
{
|
||
|
|
get => Z;
|
||
|
|
set => Z = value;
|
||
|
|
}
|
||
|
|
|
||
|
|
public float w
|
||
|
|
{
|
||
|
|
get => W;
|
||
|
|
set => W = value;
|
||
|
|
}
|
||
|
|
|
||
|
|
public Vector4(float x, float y, float z, float w)
|
||
|
|
{
|
||
|
|
X = x;
|
||
|
|
Y = y;
|
||
|
|
Z = z;
|
||
|
|
W = w;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|