public LineSegment2D RotateAroundReferencePoint(double angleInDegrees, Point2D referencePoint)
        {
            var newPoint1 = Point1.RotateAroundReferencePoint(angleInDegrees, referencePoint);
            var newPoint2 = Point2.RotateAroundReferencePoint(angleInDegrees, referencePoint);

            return(new LineSegment2D(newPoint1, newPoint2));
        }
Exemplo n.º 2
0
 public Obstacle RotateAroundReferencePoint(double angleInDegrees, Point2D referencePoint)
 {
     Point1 = Point1.RotateAroundReferencePoint(angleInDegrees, referencePoint);
     Point2 = Point2.RotateAroundReferencePoint(angleInDegrees, referencePoint);
     return(this);
 }