Skip to main content
Version: 12 Dec 2024

CopyPlaneResultsJob

Inherits from:
IJobParallelFor

Public Methods

void Execute

public void Execute(
int index
)

Parameters

TypeNameDescription
intindex

PlaneAlignment ToUnityAlignment

public PlaneAlignment ToUnityAlignment(
Extensions.MLPlanesQueryFlags flags,
Quaternion rotation
)

Parameters

TypeNameDescription
Extensions.MLPlanesQueryFlagsflags
Quaternionrotation

PlaneClassification ToUnityClassification

public PlaneClassification ToUnityClassification(
Extensions.MLPlanesQueryFlags flags
)

Parameters

TypeNameDescription
Extensions.MLPlanesQueryFlagsflags

Quaternion TransformMLRotationToUnity

public static Quaternion TransformMLRotationToUnity(
Quaternion rotation
)

Parameters

TypeNameDescription
Quaternionrotation

Quaternion TransformUnityRotationToML

public static Quaternion TransformUnityRotationToML(
Quaternion rotation
)

Parameters

TypeNameDescription
Quaternionrotation

Public Attributes

k_MagicLeapToUnityRotation


public static readonly Quaternion k_MagicLeapToUnityRotation = Quaternion.AngleAxis(-90f, Vector3.right);


k_UnityToMagicLeapRotation


public static readonly Quaternion k_UnityToMagicLeapRotation = Quaternion.Inverse(k_MagicLeapToUnityRotation);


planeTrackableIds


public NativeArray< TrackableId > planeTrackableIds;


planesIn


public NativeArray< Extensions.MLPlane > planesIn;


planesOut


public NativeArray< BoundedPlane > planesOut;