public DetectedPlaneType GetPlaneType(IntPtr planeHandle) { ApiPlaneType planeType = ApiPlaneType.HorizontalDownwardFacing; ExternApi.ArPlane_getType(_nativeSession.SessionHandle, planeHandle, ref planeType); return(planeType.ToDetectedPlaneType()); }
public static DetectedPlaneType ToDetectedPlaneType(this ApiPlaneType apiPlaneType) { switch (apiPlaneType) { case ApiPlaneType.HorizontalUpwardFacing: return(DetectedPlaneType.HorizontalUpwardFacing); case ApiPlaneType.HorizontalDownwardFacing: return(DetectedPlaneType.HorizontalDownwardFacing); case ApiPlaneType.Vertical: return(DetectedPlaneType.Vertical); default: return(DetectedPlaneType.HorizontalUpwardFacing); } }
public static extern void ArPlane_getType( IntPtr sessionHandle, IntPtr planeHandle, ref ApiPlaneType planeType);