Beispiel #1
0
 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);
 }
Beispiel #2
0
 protected virtual void Init() {
     Vector = this.PointB - this.PointA;
     Equation = new LineEquation(PointA, PointB);
     SlopeEquation = new SlopeInterceptEquation(PointA, PointB);
 }