Class DelaunayTriangle
Represents a triangle in a delaunay triangulation operation.
Inheritance
System.Object
DelaunayTriangle
Namespace: Paramdigma.Core.Spatial
Assembly: Paramdigma.Core.dll
Syntax
public class DelaunayTriangle : object
Constructors
| Improve this Doc View SourceDelaunayTriangle(DelaunayPoint, DelaunayPoint, DelaunayPoint)
Initializes a new instance of the DelaunayTriangle class.
Declaration
public DelaunayTriangle(DelaunayPoint point1, DelaunayPoint point2, DelaunayPoint point3)
Parameters
Type | Name | Description |
---|---|---|
DelaunayPoint | point1 | Point A. |
DelaunayPoint | point2 | Point B. |
DelaunayPoint | point3 | Point C. |
Fields
| Improve this Doc View SourceCircumcenter
Circumcenter of this triangle.
Declaration
public Point2d Circumcenter
Field Value
Type | Description |
---|---|
Point2d |
RadiusSquared
Squared radius of the triangle's circumcircle.
Declaration
public double RadiusSquared
Field Value
Type | Description |
---|---|
System.Double |
Vertices
List of vertices of this triangle.
Declaration
public readonly List<DelaunayPoint> Vertices
Field Value
Type | Description |
---|---|
List<DelaunayPoint> |
Methods
| Improve this Doc View SourceIsPointInsideCircumcircle(Point2d)
Checks if a point is inside this triangle's circumcircle.
Declaration
public bool IsPointInsideCircumcircle(Point2d point)
Parameters
Type | Name | Description |
---|---|---|
Point2d | point | Point2d to check. |
Returns
Type | Description |
---|---|
System.Boolean | True if inside. |
TrianglesWithSharedEdges()
Returns a collection of neighbouring triangles.
Declaration
public IEnumerable<DelaunayTriangle> TrianglesWithSharedEdges()
Returns
Type | Description |
---|---|
IEnumerable<DelaunayTriangle> | Collection of triangles. |