public TrackedPointOrientationMode GetOrientationMode(IntPtr pointHandle) { ApiTrackedPointOrientationMode orientationMode = ApiTrackedPointOrientationMode.Identity; ExternApi.ArPoint_getOrientationMode(m_NativeSession.SessionHandle, pointHandle, ref orientationMode); return(orientationMode.ToTrackedPointOrientationMode()); }
public static TrackedPointOrientationMode ToTrackedPointOrientationMode( this ApiTrackedPointOrientationMode apiMode) { switch (apiMode) { case ApiTrackedPointOrientationMode.Identity: return(TrackedPointOrientationMode.Identity); case ApiTrackedPointOrientationMode.SurfaceNormal: return(TrackedPointOrientationMode.SurfaceNormal); default: ARDebug.LogError("Invalid value for ApiTrackedPointOrientationMode."); return(TrackedPointOrientationMode.Identity); } }
public static extern void ArPoint_getOrientationMode(IntPtr session, IntPtr point, ref ApiTrackedPointOrientationMode orientationMode);