CopyPlaneResultsJob
Inherits from:
IJobParallelFor
Public Methods
void Execute
public void Execute(
int index
)
Parameters
Type | Name | Description |
---|---|---|
int | index |
PlaneAlignment ToUnityAlignment
public PlaneAlignment ToUnityAlignment(
Extensions.MLPlanesQueryFlags flags,
Quaternion rotation
)
Parameters
Type | Name | Description |
---|---|---|
Extensions.MLPlanesQueryFlags | flags | |
Quaternion | rotation |
PlaneClassification ToUnityClassification
public PlaneClassification ToUnityClassification(
Extensions.MLPlanesQueryFlags flags
)
Parameters
Type | Name | Description |
---|---|---|
Extensions.MLPlanesQueryFlags | flags |
Quaternion TransformMLRotationToUnity
public static Quaternion TransformMLRotationToUnity(
Quaternion rotation
)
Parameters
Type | Name | Description |
---|---|---|
Quaternion | rotation |
Quaternion TransformUnityRotationToML
public static Quaternion TransformUnityRotationToML(
Quaternion rotation
)
Parameters
Type | Name | Description |
---|---|---|
Quaternion | rotation |
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;