using System; using System.Collections.Generic; namespace Parabox.CSG { // Token: 0x0200001A RID: 26 internal class CSG_Polygon { // Token: 0x060000BC RID: 188 RVA: 0x0000DF48 File Offset: 0x0000C348 public CSG_Polygon(List list) { this.vertices = list; this.plane = new CSG_Plane(list[0].position, list[1].position, list[2].position); } // Token: 0x060000BD RID: 189 RVA: 0x0000DF9C File Offset: 0x0000C39C public void Flip() { this.vertices.Reverse(); for (int i = 0; i < this.vertices.Count; i++) { this.vertices[i].Flip(); } this.plane.Flip(); } // Token: 0x060000BE RID: 190 RVA: 0x0000DFEF File Offset: 0x0000C3EF public override string ToString() { return "N: " + this.plane.normal; } // Token: 0x0400003D RID: 61 public List vertices; // Token: 0x0400003E RID: 62 public CSG_Plane plane; } }