public static bool CurrentDiffersFrom(Location otherLocation, bool compareHeading) { if(otherLocation.X != REPlugin.Instance.Actions.LocationX) { return true; } if(otherLocation.Y != REPlugin.Instance.Actions.LocationY) { return true; } if(otherLocation.Z != REPlugin.Instance.Actions.LocationZ) { return true; } if (compareHeading) { if (otherLocation.HeadingInDegrees != REPlugin.Instance.Actions.Heading) { return true; } } return false; }
public static double GetDistance(Location loc1, Location loc2) { return GetDistance(loc1.Coords, loc2.Coords); }
public static bool WithinRangeOfSelf(Location location, int maxDistance) { return WithinRangeOfSelf(location.Coords, maxDistance); }
public static double GetDistanceFromSelf(Location point) { return GetDistanceFromSelf(point.Coords); }
public JumpData(Location fromLocation, double heading, double height) { this.Location = fromLocation; this.Heading = heading; this.Height = height; }
public static IAction Create(ISupportFeedback requestor, Location location) { return new GoToNearbyLocation(requestor, location.Coords, location.HeadingInDegrees); }
public bool CurrentIsSameAs(Location otherLocation, bool compareHeading) { return !CurrentDiffersFrom(otherLocation, compareHeading); }