30 lines
482 B
C#
30 lines
482 B
C#
using System.Runtime.InteropServices;
|
|
|
|
namespace XCEngine
|
|
{
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public struct Vector2
|
|
{
|
|
public float X;
|
|
public float Y;
|
|
|
|
public float x
|
|
{
|
|
get => X;
|
|
set => X = value;
|
|
}
|
|
|
|
public float y
|
|
{
|
|
get => Y;
|
|
set => Y = value;
|
|
}
|
|
|
|
public Vector2(float x, float y)
|
|
{
|
|
X = x;
|
|
Y = y;
|
|
}
|
|
}
|
|
}
|