Skip to main content
Version: 14 Oct 2024

MLCoordinateFrameUID

A unique identifier which represents a coordinate frame. The unique identifier is comprised of two values.

Public Fields

EmptyFrame

Gets an initialized MLCoordinateFrameUID.


public static MLCoordinateFrameUID EmptyFrame { get; set; }

TypeDescription
MLCoordinateFrameUIDA unique identifier which represents a coordinate frame. The unique identifier is comprised of two values.

Returns: An initialized MLCoordinateFrameUID.


Public Methods

override bool Equals

The equality check to be used for when being compared to an object.

public override bool Equals(
object obj
)

Parameters

TypeNameDescription
objectobjThe object to compare to this one with.

Returns: True if the the provided object is of the MLCoordinateFrameUID type and has the same two data values.


void FromGuid

Sets First and Second data value based on given GUID.

public void FromGuid(
Guid guid
)

Parameters

TypeNameDescription
GuidguidGUID needed to calculate both data values.

void FromString

Sets First and Second data value based on given GUID in stirng form.

public void FromString(
string guidString
)

Parameters

TypeNameDescription
stringguidStringGUID needed to calculate both data values

void FromULongPair

Sets First and Second value.

public void FromULongPair(
ulong first,
ulong second
)

Parameters

TypeNameDescription
ulongfirstFirst data value.
ulongsecondSecond data value.

override int GetHashCode

Gets the hash code to use from the first data value.

public override int GetHashCode()

Returns: The hash code returned by the first data value of this object


MLCoordinateFrameUID

Constructor getting two ulongs as argument.

public MLCoordinateFrameUID(
ulong first,
ulong second
)

Parameters

TypeNameDescription
ulongfirstFirst data value.
ulongsecondSecond data value.

MLCoordinateFrameUID

Constructor getting GUID as argument.

public MLCoordinateFrameUID(
Guid guid
)

Parameters

TypeNameDescription
GuidguidGUID from which both values will be calculated.

MLCoordinateFrameUID

Constructor getting GUID as argument in string form.

public MLCoordinateFrameUID(
string guidString
)

Parameters

TypeNameDescription
stringguidStringGUID from which both values will be calculated.

Guid ToGuid

Returns the GUID based on the values of this MLCoordinateFrameUID.

public Guid ToGuid()

Returns: The calculated GUID.


override string ToString

Returns the string value of the GUID of this MLCoordinateFrameUID.

public override string ToString()

Returns: The string value of the GUID.


bool operator!=

The inequality check to be used for comparing two MLCoordinateFrameUID structs.

public static bool operator!=(
MLCoordinateFrameUID one,
MLCoordinateFrameUID two
)

Parameters

TypeNameDescription
MLCoordinateFrameUIDoneThe first struct to compare with the second struct.
MLCoordinateFrameUIDtwoThe second struct to compare with the first struct.

Returns: True if the two provided structs do not have the same two data values.


bool operator==

The equality check to be used for comparing two MLCoordinateFrameUID structs.

public static bool operator==(
MLCoordinateFrameUID one,
MLCoordinateFrameUID two
)

Parameters

TypeNameDescription
MLCoordinateFrameUIDoneThe first struct to compare with the second struct.
MLCoordinateFrameUIDtwoThe second struct to compare with the first struct.

Returns: True if the two provided structs have the same two data values.


Public Attributes

First

The first data value.


public ulong First;


Second

The second data value.


public ulong Second;