Delaunay.Edge.DelaunayLine C# (CSharp) Method

DelaunayLine() public method

public DelaunayLine ( ) : LineSegment
return LineSegment
        public LineSegment DelaunayLine()
        {
            // draw a line connecting the input Sites for which the edge is a bisector:
            return new LineSegment(LeftSite.Coord(), RightSite.Coord());
        }

Usage Example

コード例 #1
0
        public static List <LineSegment> DelaunayLinesForEdges(List <Edge> edges)
        {
            List <LineSegment> list = new List <LineSegment>();

            for (int i = 0; i < edges.Count; i++)
            {
                Edge edge = edges[i];
                list.Add(edge.DelaunayLine());
            }
            return(list);
        }