rimworld-animation-studio/Assets/Scripts/Math/CurvePoint.cs
2022-09-17 19:06:33 -05:00

49 lines
555 B
C#

using System;
using UnityEngine;
namespace RimWorldAnimationStudio
{
public struct CurvePoint
{
public Vector2 Loc
{
get
{
return this.loc;
}
}
public float x
{
get
{
return this.loc.x;
}
}
public float y
{
get
{
return this.loc.y;
}
}
public CurvePoint(float x, float y)
{
this.loc = new Vector2(x, y);
}
public CurvePoint(Vector2 loc)
{
this.loc = loc;
}
public static implicit operator Vector2(CurvePoint pt)
{
return pt.loc;
}
private Vector2 loc;
}
}