示例#1
0
        public static IntPtr Create(IntPtr sessionHandle, Pose pose)
        {
            ApiPose apiPose    = Translators.ToApiPose(pose);
            IntPtr  poseHandle = IntPtr.Zero;

            ExternApi.ArPose_create(
                sessionHandle,
                ref apiPose,
                ref poseHandle);
            return(poseHandle);
        }
示例#2
0
        public static ApiPose ExtractPoseValue(
            IntPtr sessionHandle,
            IntPtr poseHandle)
        {
            ApiPose apiPose = Translators.ToApiPose(Pose.identity);

            ExternApi.ArPose_getPoseRaw(
                sessionHandle,
                poseHandle,
                ref apiPose);
            return(apiPose);
        }