Last change
on this file since 1153 was 1114, checked in by iritscen, 5 years ago |
Adding OniSplit source code (v0.9.99.0). Many thanks to Neo for all his work over the years.
|
File size:
321 bytes
|
Rev | Line | |
---|
[1114] | 1 | namespace Oni
|
---|
| 2 | {
|
---|
| 3 | internal struct Polygon2
|
---|
| 4 | {
|
---|
| 5 | private readonly Vector2[] points;
|
---|
| 6 |
|
---|
| 7 | public Polygon2(Vector2[] points)
|
---|
| 8 | {
|
---|
| 9 | this.points = points;
|
---|
| 10 | }
|
---|
| 11 |
|
---|
| 12 | public int Length => points.Length;
|
---|
| 13 |
|
---|
| 14 | public Vector2 this[int index] => points[index];
|
---|
| 15 | }
|
---|
| 16 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.