protected override IVoronoiEdge <VERTEX> CreateEdge(IDelaunayCell <VERTEX> from, IDelaunayCell <VERTEX> to) { if (from as IDecoratedDelaunayCell <VERTEX, CELLDATA> == null || to as IDecoratedDelaunayCell <VERTEX, CELLDATA> == null) { // TODO: throw new ArgumentException(); } return(new DecoratedVoronoiEdge <VERTEX, EDGEDATA, CELLDATA>(from, to)); }
protected virtual IVoronoiEdge <VERTEX> CreateEdge(IDelaunayCell <VERTEX> from, IDelaunayCell <VERTEX> to) { return(new VoronoiEdge <VERTEX>(from, to)); }
public VoronoiEdge(IDelaunayCell <VERTEX> from, IDelaunayCell <VERTEX> to) { From = from; To = to; }
public DecoratedVoronoiEdge(IDelaunayCell <VERTEX> from, IDelaunayCell <VERTEX> to) : base(from, to) { UserData = new EDGEDATA(); }