00001 using System;
00002 using System.Collections.Generic;
00003 using System.Text;
00004
00005 namespace Triangulator.Geometry
00006 {
00007
00008
00009
00010
00011 public class Edge : IEquatable<Edge>
00012 {
00013
00014
00015
00016 public int p1;
00017
00018
00019
00020 public int p2;
00021
00022
00023
00024
00025
00026 public Edge(int point1, int point2)
00027 {
00028 p1 = point1; p2 = point2;
00029 }
00030
00031
00032
00033 public Edge()
00034 : this(0, 0)
00035 {
00036 }
00037
00038 #region IEquatable<dEdge> Members
00039
00040
00041
00042
00043
00044
00045 public bool Equals(Edge other)
00046 {
00047 return
00048 ((this.p1 == other.p2) && (this.p2 == other.p1)) ||
00049 ((this.p1 == other.p1) && (this.p2 == other.p2));
00050 }
00051
00052 #endregion
00053 }
00054 }