Exemple #1
0
 public static extern void ArFrame_transformCoordinates2d(
     IntPtr session,
     IntPtr frame,
     ApiCoordinates2dType inputType,
     int numVertices,
     ref Vector2 uvsIn,
     ApiCoordinates2dType outputType,
     ref Vector2 uvsOut);
Exemple #2
0
        public static Vector2 TransformCoordinates2d(IntPtr sessionHandle, IntPtr frameHandle,
                                                     ApiCoordinates2dType inputType, ApiCoordinates2dType outputType, ref Vector2 uvIn)
        {
            Vector2 uvOut = new Vector2(uvIn.x, uvIn.y);

            ExternApi.ArFrame_transformCoordinates2d(
                sessionHandle, frameHandle, inputType, 1, ref uvIn, outputType, ref uvOut);
            return(uvOut);
        }