7384b5fd07
git-svn-id: https://triangle.svn.codeplex.com/svn@75021 0e2699bc-83d4-4a8f-98e7-55e24ab8c7a5
65 lines
1.6 KiB
C#
65 lines
1.6 KiB
C#
// -----------------------------------------------------------------------
|
|
// <copyright file="Edge.cs" company="">
|
|
// Triangle.NET code by Christian Woltering, http://triangle.codeplex.com/
|
|
// </copyright>
|
|
// -----------------------------------------------------------------------
|
|
|
|
namespace TriangleNet.Geometry
|
|
{
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using TriangleNet.Data;
|
|
|
|
/// <summary>
|
|
/// Represents a straight line segment in 2D space.
|
|
/// </summary>
|
|
public class Edge : IEdge
|
|
{
|
|
/// <summary>
|
|
/// Gets the first endpoints index.
|
|
/// </summary>
|
|
public int P0
|
|
{
|
|
get;
|
|
private set;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets the second endpoints index.
|
|
/// </summary>
|
|
public int P1
|
|
{
|
|
get;
|
|
private set;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets the segments boundary mark.
|
|
/// </summary>
|
|
public int Boundary
|
|
{
|
|
get;
|
|
private set;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="Edge" /> class.
|
|
/// </summary>
|
|
public Edge(int p0, int p1)
|
|
: this(p0, p1, 0)
|
|
{ }
|
|
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="Edge" /> class.
|
|
/// </summary>
|
|
public Edge(int p0, int p1, int boundary)
|
|
{
|
|
this.P0 = p0;
|
|
this.P1 = p1;
|
|
this.Boundary = boundary;
|
|
}
|
|
}
|
|
}
|