SpaceLocalizationResult
A structure containing information about the device's localization state. This structure must be initialized by calling #MLSpaceLocalizationResultInit before usebefore use.
Public Methods
SpaceLocalizationResult Create
Initialize default values for #MLSpaceLocalizationResult.
public static SpaceLocalizationResult Create(
uint version =3u
)
Parameters
Type | Name | Description |
---|---|---|
uint | version |
Public Attributes
ConfidenceOfLocalization
The confidence level of this localization result.
public readonly LocalizationConfidence ConfidenceOfLocalization;
Type | Description |
---|---|
readonly LocalizationConfidence | The confidence of the current localization. |
Error
Represents a bitmask of LocalizationErrorFlag.
public readonly uint Error;
LocalizationStatus
The localization status at the time this structure was returned.
public readonly Status LocalizationStatus;
Type | Description |
---|---|
readonly Status | The current localization status. |
Space
Space information. If localized(#MLSpaceLocalizationStatus_Localized) this will contain valid Space information. If not localized this field should be ignored.
public readonly Space Space;
Type | Description |
---|---|
readonly Space | A structure containing information about a Magic Leap Space. This structure must be initialized by calling #MLSpaceInit before use. |
TargetSpaceOrigin
Target space's origin relative to world origin. If localized this will contain the identifier of the transform of the target space's origin relative to the world origin. If not localized this will be null.
public readonly NativeBindings.MLCoordinateFrameUID TargetSpaceOrigin;
Type | Description |
---|---|
readonly NativeBindings.MLCoordinateFrameUID | A unique identifier which represents a coordinate frame. The unique identifier is comprised of two values. |
Version
Version of the structure.
public uint Version;