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

Sandbox.ModAPI.Ingame.MyWaypointInfo

Morten Aune Lyrstad edited this page Jun 28, 2020 · 52 revisions

IndexNamespace Index

MyWaypointInfo Struct

public struct MyWaypointInfo: IEquatable<Sandbox.ModAPI.Ingame.MyWaypointInfo>

Represents a GPS coordinate

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

Implements:

Fields

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

Constructors

Member Description
MyWaypointInfo(string, double, double, double)
MyWaypointInfo(string, Vector3D)

Methods

Member Description
FindAll(string, List) Searches for all GPS coordinates in the given text.
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:
IsEmpty() Determines whether this coordinate is empty (undefined)
ToString() Converts this GPS coordinate to its string equivalent
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

Clone this wiki locally