public static Point AddPoint(this Point source, Directions dir, int spaces) { if (dir == Directions.UP) { return(new Point(0, spaces)); } if (dir == Directions.RIGHT) { return(new Point(spaces, 0)); } if (dir == Directions.DOWN) { return(new Point(0, -spaces)); } if (dir == Directions.LEFT) { return(new Point(-spaces, 0)); } return(new Point(0, 0)); }
public void DrawBezier() { Point p0 = new Point(0, 0); Point p1 = new Point(0, 0).AddPoint(this.Dir[0], this.Spaces[0]).AddPoint(this.Dir[1], this.Spaces[1]); }