コード例 #1
0
ファイル: Line2D.cs プロジェクト: Olsyx/Hedra-Library
 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);
 }
コード例 #2
0
ファイル: Line2D.cs プロジェクト: Olsyx/Hedra-Library
 protected virtual void Init() {
     Vector = this.PointB - this.PointA;
     Equation = new LineEquation(PointA, PointB);
     SlopeEquation = new SlopeInterceptEquation(PointA, PointB);
 }