Exemplo n.º 1
0
 public Ray2D(ICoordinates startPoint, Angle angle)
 {
     _startPoint     = (Vector2D)startPoint;
     _angleFromXAxis = angle;
     Slope           = AngleHelper.AngleToSlope(angle);
     YAt0            = startPoint.Y - Slope * startPoint.X;
 }
Exemplo n.º 2
0
 public Ray2D(Point point2D, Angle angle)
 {
     _startPoint     = (Vector2D)point2D;
     _angleFromXAxis = angle;
     Slope           = AngleHelper.AngleToSlope(angle);
     YAt0            = point2D.Y - Slope * point2D.X;
 }
Exemplo n.º 3
0
 public Line(ICoordinates point, Angle angle)
 {
     Slope = AngleHelper.AngleToSlope(angle);
     YAt0  = point.Y - point.X * Slope;
 }