Esempio n. 1
0
 public static double DistanceTo(ActorBase from, ActorBase to)
 {
     return(PointD.DistanceTo(from.Location, to.Location));
 }
Esempio n. 2
0
 public static double AngleTo(ActorBase from, PointD to)
 {
     return(PointD.AngleTo(from.Location, to));
 }
Esempio n. 3
0
        public static bool IsPointingAt(ActorBase fromObj, ActorBase atObj, double toleranceDegrees)
        {
            var deltaAngle = Math.Abs(DeltaAngle(fromObj, atObj));

            return(deltaAngle < toleranceDegrees || deltaAngle > (360 - toleranceDegrees));
        }
Esempio n. 4
0
 public static double AngleTo(PointD from, ActorBase to)
 {
     return(PointD.AngleTo(from, to.Location));
 }