Client LuaCsForBarotrauma
MathUtils.cs
1 using Microsoft.Xna.Framework;
2 using System.Collections.Generic;
3 
4 namespace Barotrauma
5 {
6  class CompareSegmentPointCW : IComparer<Lights.SegmentPoint>
7  {
8  private Vector2 center;
9 
10  public CompareSegmentPointCW(Vector2 center)
11  {
12  this.center = center;
13  }
14  public int Compare(Lights.SegmentPoint a, Lights.SegmentPoint b)
15  {
16  return -CompareCCW.Compare(a.WorldPos, b.WorldPos, center);
17  }
18  }
19 }
CompareSegmentPointCW(Vector2 center)
Definition: MathUtils.cs:10
int Compare(Lights.SegmentPoint a, Lights.SegmentPoint b)
Definition: MathUtils.cs:14