ViewVC Help
View File
|
Revision Log
|
View Changeset
|
Root Listing
root
/
Oni2
/
OniSplit
/
Math
/
Polygon2.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
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
}