public Line2D(Vector2 pointA, Vector2 pointB) { this.PointA = pointA; this.PointB = pointB; Vector = this.PointB - this.PointA; Equation = new LineEquation(PointA, PointB); SlopeEquation = new SlopeInterceptEquation(PointA, PointB); }
protected virtual void Init() { Vector = this.PointB - this.PointA; Equation = new LineEquation(PointA, PointB); SlopeEquation = new SlopeInterceptEquation(PointA, PointB); }