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