Пример #1
0
 public void MoveInDirectionOf(PointD location, double?speed = null)
 {
     this.Velocity.Angle.Degrees = PointD.AngleTo(this.Location, location);
     if (speed != null)
     {
         this.Velocity.MaxSpeed = (double)speed;
     }
 }
Пример #2
0
 public static double AngleTo(ActorBase from, PointD to)
 {
     return(PointD.AngleTo(from.Location, to));
 }
Пример #3
0
 public static double AngleTo(PointD from, ActorBase to)
 {
     return(PointD.AngleTo(from, to.Location));
 }