ViewVC Help
View File | Revision Log | View Changeset | Root Listing
root/Oni2/OniSplit/Math/Polygon3.cs
Revision: 1114
Committed: Wed Jan 22 14:08:57 2020 UTC (5 years, 8 months ago) by iritscen
File size: 321 byte(s)
Log Message:
Adding OniSplit source code (v0.9.99.0). Many thanks to Neo for all his work over the years.

File Contents

# Content
1 namespace Oni
2 {
3 internal struct Polygon3
4 {
5 private readonly Vector3[] points;
6
7 public Polygon3(Vector3[] points)
8 {
9 this.points = points;
10 }
11
12 public int Length => points.Length;
13
14 public Vector3 this[int index] => points[index];
15 }
16 }