-
Notifications
You must be signed in to change notification settings - Fork 123
Sandbox.ModAPI.Ingame.MyWaypointInfo
← Index ← Namespace Index
public struct MyWaypointInfo: IEquatable<MyWaypointInfo>
Represents a GPS coordinate
Namespace: Sandbox.ModAPI.Ingame
Assembly: Sandbox.Common.dll
Implements:
Returns an empty (undefined) GPS coordinate
Gets the target coordinate as a Vector3D
The name of this GPS coordinate
MyWaypointInfo(string name, double x, double y, double z)
MyWaypointInfo(string name, Vector3D coords)
static void FindAll(string source, List<MyWaypointInfo> gpsList)
Searches for all GPS coordinates in the given text.
static bool TryParse(string text, out MyWaypointInfo gps)
Attempts to parse a GPS coordinate from the given text. The text cannot contain anything but the GPS coordinate.
A GPS coordinate has the format GPS:Name:X:Y:Z:
bool Equals(MyWaypointInfo other)
Determines whether this coordinate is the same as another. Uses 0.0001 as the epsilon to counter floating point inaccuracies.
bool Equals(MyWaypointInfo other, double epsilon)
Determines whether this coordinate is the same as another. Uses 0.0001 as the epsilon to counter floating point inaccuracies.
Determines whether this coordinate is the same as another. Uses 0.0001 as the epsilon to counter floating point inaccuracies.
Gets the hashcode of this coordinate
Determines whether this coordinate is empty (undefined)
Converts this GPS coordinate to its string equivalent
Do you have questions, comments, suggestions for improvements? Is there something I can do better? Did I make a mistake? Please add an issue here, and prefix your issue title with Wiki. Thank you, your help will be very appreciated!