Files
LuaCsForBarotraumaEP/Barotrauma/BarotraumaClient/Source/Utils/MathUtils.cs
2017-07-05 18:35:09 +03:00

20 lines
476 B
C#

using Microsoft.Xna.Framework;
using System.Collections.Generic;
namespace Barotrauma
{
class CompareSegmentPointCW : IComparer<Lights.SegmentPoint>
{
private Vector2 center;
public CompareSegmentPointCW(Vector2 center)
{
this.center = center;
}
public int Compare(Lights.SegmentPoint a, Lights.SegmentPoint b)
{
return -CompareCCW.Compare(a.WorldPos, b.WorldPos, center);
}
}
}