Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

Sandbox.ModAPI.Ingame.MyWaypointInfo

Morten Aune Lyrstad edited this page Apr 16, 2022 · 51 revisions

IndexNamespace Index

MyWaypointInfo Struct

public struct MyWaypointInfo: IEquatable<MyWaypointInfo>

Represents a GPS coordinate

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

Implements:

Fields

static MyWaypointInfo Empty

Returns an empty (undefined) GPS coordinate

Vector3D Coords

Gets the target coordinate as a Vector3D

string Name

The name of this GPS coordinate

Constructors

MyWaypointInfo(string name, double x, double y, double z)

MyWaypointInfo(string name, Vector3D coords)

Methods

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.

bool Equals(object obj)

Determines whether this coordinate is the same as another. Uses 0.0001 as the epsilon to counter floating point inaccuracies.

int GetHashCode()

Gets the hashcode of this coordinate

bool IsEmpty()

Determines whether this coordinate is empty (undefined)

string ToString()

Converts this GPS coordinate to its string equivalent

Clone this wiki locally