mirror of
https://gitgud.io/AbstractConcept/rimworld-animation-studio.git
synced 2024-08-15 00:43:27 +00:00
49 lines
555 B
C#
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;
|
|
}
|
|
}
|