Exemplo n.º 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;
     }
 }
Exemplo n.º 2
0
 public static double AngleTo(ActorBase from, PointD to)
 {
     return(PointD.AngleTo(from.Location, to));
 }
Exemplo n.º 3
0
 public static double AngleTo(PointD from, ActorBase to)
 {
     return(PointD.AngleTo(from, to.Location));
 }