scripts
This commit is contained in:
@@ -0,0 +1,80 @@
|
||||
using System;
|
||||
using TriangleNet.Geometry;
|
||||
|
||||
namespace TriangleNet.Data
|
||||
{
|
||||
// Token: 0x0200003A RID: 58
|
||||
public class Vertex : Point
|
||||
{
|
||||
// Token: 0x06000219 RID: 537 RVA: 0x000194ED File Offset: 0x000176ED
|
||||
public Vertex()
|
||||
: this(0.0, 0.0, 0, 0)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600021A RID: 538 RVA: 0x00019509 File Offset: 0x00017709
|
||||
public Vertex(double x, double y)
|
||||
: this(x, y, 0, 0)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600021B RID: 539 RVA: 0x00019515 File Offset: 0x00017715
|
||||
public Vertex(double x, double y, int mark)
|
||||
: this(x, y, mark, 0)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600021C RID: 540 RVA: 0x00019521 File Offset: 0x00017721
|
||||
public Vertex(double x, double y, int mark, int attribs)
|
||||
: base(x, y, mark)
|
||||
{
|
||||
this.type = VertexType.InputVertex;
|
||||
if (attribs > 0)
|
||||
{
|
||||
this.attributes = new double[attribs];
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000093 RID: 147
|
||||
// (get) Token: 0x0600021D RID: 541 RVA: 0x00019545 File Offset: 0x00017745
|
||||
public VertexType Type
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.type;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000094 RID: 148
|
||||
public double this[int i]
|
||||
{
|
||||
get
|
||||
{
|
||||
if (i == 0)
|
||||
{
|
||||
return this.x;
|
||||
}
|
||||
if (i == 1)
|
||||
{
|
||||
return this.y;
|
||||
}
|
||||
throw new ArgumentOutOfRangeException("Index must be 0 or 1.");
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600021F RID: 543 RVA: 0x0001956E File Offset: 0x0001776E
|
||||
public override int GetHashCode()
|
||||
{
|
||||
return this.hash;
|
||||
}
|
||||
|
||||
// Token: 0x04000129 RID: 297
|
||||
internal int hash;
|
||||
|
||||
// Token: 0x0400012A RID: 298
|
||||
internal VertexType type;
|
||||
|
||||
// Token: 0x0400012B RID: 299
|
||||
internal Otri tri;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user