Aiv.Fast2D.Example.Segment.Segment C# (CSharp) Method

Segment() public method

public Segment ( float x1, float y1, float x2, float y2, float width ) : System
x1 float
y1 float
x2 float
y2 float
width float
return System
        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();
        }