public Segment(float x1, float y1, float x2, float y2, float width) : base(width, Math.Abs(y2 - y1)) { point1 = new Vector2(x1, y1); point2 = new Vector2(x2, y2); this.lineWidth = width; this.UpdatePoints(); }