mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
26 lines
518 B
C#
26 lines
518 B
C#
using UnityEngine;
|
|
|
|
namespace NewHorizons.Utility
|
|
{
|
|
public class MVector2
|
|
{
|
|
public MVector2(float x, float y)
|
|
{
|
|
X = x;
|
|
Y = y;
|
|
}
|
|
|
|
public float X { get; }
|
|
public float Y { get; }
|
|
|
|
public static implicit operator MVector2(Vector2 vec)
|
|
{
|
|
return new MVector2(vec.x, vec.y);
|
|
}
|
|
|
|
public static implicit operator Vector2(MVector2 vec)
|
|
{
|
|
return new Vector2(vec.X, vec.Y);
|
|
}
|
|
}
|
|
} |