-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathSimpleTriangle.cs
52 lines (49 loc) · 1.74 KB
/
SimpleTriangle.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
//-----------------------------------------------------------------------
// <copyright file="SimpleTriangle.cs" company="Studio A&T s.r.l.">
// Copyright (c) Studio A&T s.r.l. All rights reserved.
// </copyright>
// <author>Nicogis</author>
//-----------------------------------------------------------------------
namespace Studioat.ArcGIS.Voronoi
{
/// <summary>
/// class Triangulation
/// </summary>
public partial class Triangulation
{
/// <summary>
/// Declare a simple triangle struct
/// </summary>
private struct SimpleTriangle
{
/// <summary>
/// Index entries to each vertex
/// </summary>
public int A, B, C;
/// <summary>
/// x, y of the centre, and radius of the circle
/// </summary>
public SimplePoint CircumCentre;
/// <summary>
/// radius of triangle
/// </summary>
public double Radius;
/// <summary>
/// Initializes a new instance of the <see cref="SimpleTriangle"/> struct
/// </summary>
/// <param name="a">index vertex a</param>
/// <param name="b">index vertex b</param>
/// <param name="c">index vertex c</param>
/// <param name="circumcentre">center of triangle</param>
/// <param name="radius">radius of triangle</param>
public SimpleTriangle(int a, int b, int c, SimplePoint circumcentre, double radius)
{
this.A = a;
this.B = b;
this.C = c;
this.CircumCentre = circumcentre;
this.Radius = radius;
}
}
}
}