DotRecastNetSim/src/DotRecast.Core/Vector2f.cs

21 lines
370 B
C#
Raw Normal View History

2023-03-28 19:52:26 +03:00
using System;
namespace DotRecast.Core
{
public struct Vector2f
{
public float x;
public float y;
2023-04-15 03:31:51 +03:00
public float Get(int idx)
{
if (0 == idx)
return x;
if (1 == idx)
return y;
throw new IndexOutOfRangeException("vector2f index out of range");
}
2023-03-28 19:52:26 +03:00
}
}