Sandbox.ModAPI.Ingame
MyWaypointInfo
Assembly: Sandbox.Common.dll
public struct MyWaypointInfo: IEquatable<MyWaypointInfo>
Represents a GPS coordinate
Fields
| Member | Description |
|---|---|
| static Empty | Returns an empty (undefined) GPS coordinate |
| Coords | Gets the target coordinate as a Vector3D |
| Name | The name of this GPS coordinate |
Constructors
| Member | Description |
|---|---|
| MyWaypointInfo(string, double, double, double) | |
| MyWaypointInfo(string, Vector3D) |
Methods
| Member | Description |
|---|---|
| static FindAll(string, List |
Searches for all GPS coordinates in the given text. |
| static TryParse(string, out MyWaypointInfo) | 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: |
| Equals(MyWaypointInfo) | Determines whether this coordinate is the same as another. Uses 0.0001 as the epsilon to counter floating point inaccuracies. |
| Equals(MyWaypointInfo, double) | Determines whether this coordinate is the same as another. Uses 0.0001 as the epsilon to counter floating point inaccuracies. |
| Equals(object) | Determines whether this coordinate is the same as another. Uses 0.0001 as the epsilon to counter floating point inaccuracies. |
| GetHashCode() | Gets the hashcode of this coordinate |
| IsEmpty() | Determines whether this coordinate is empty (undefined) |
| ToString() | Converts this GPS coordinate to its string equivalent |
Implements: