Skip to content
This repository was archived by the owner on Dec 13, 2025. It is now read-only.

Sandbox.ModAPI.Ingame.MyWaypointInfo

Malware edited this page Dec 21, 2018 · 52 revisions

Index

MyWaypointInfo Struct

Namespace: Sandbox.ModAPI.Ingame
Assembly: Sandbox.Common.dll

Summary

Represents a GPS coordinate

Fields

Member Description
string Name The name of this GPS coordinate
Vector3D Coords Gets the target coordinate as a Vector3D
static MyWaypointInfo Empty Returns an empty (undefined) GPS coordinate

Methods

Member Description
static void&nbsp;FindAll(string&nbsp;source,&nbsp;List<MyWaypointInfo>&nbsp;gpsList) Searches for all GPS coordinates in the given text.
static bool&nbsp;TryParse(string&nbsp;text,&nbsp;ref&nbsp;MyWaypointInfo&nbsp;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&nbsp;IsEmpty() Determines whether this coordinate is empty (undefined)
string&nbsp;ToString() Converts this GPS coordinate to its string equivalent
bool&nbsp;Equals(MyWaypointInfo&nbsp;other) Determines whether this coordinate is the same as another. Uses 0.0001 as the epsilon to counter floating point inaccuracies.
bool&nbsp;Equals(MyWaypointInfo&nbsp;other,&nbsp;double&nbsp;epsilon) Determines whether this coordinate is the same as another. Uses 0.0001 as the epsilon to counter floating point inaccuracies.
bool&nbsp;Equals(Object&nbsp;obj) Determines whether this coordinate is the same as another. Uses 0.0001 as the epsilon to counter floating point inaccuracies.
int&nbsp;GetHashCode() Gets the hashcode of this coordinate

Clone this wiki locally