public Posef(Quatf q, Vector3f p) { Orientation = q; Position = p; }
private static extern void ovrHmd_GetEyeTimewarpMatricesDebug( IntPtr hmd, Eye eye, Posef renderPose, Quatf extraQuat, [MarshalAs(UnmanagedType.LPArray, SizeConst = 2)] [Out] Matrix4f_Raw[] twnOut, double debugTimingOffsetInSeconds);
public Matrix4f[] GetEyeTimewarpMatricesDebug(Eye eye, Posef renderPose, Quatf extraQuat, double debugTimingOffsetInSeconds) { Matrix4f_Raw[] rawMats = {new Matrix4f_Raw(), new Matrix4f_Raw()}; ovrHmd_GetEyeTimewarpMatricesDebug(HmdPtr, eye, renderPose, extraQuat, rawMats, debugTimingOffsetInSeconds); Matrix4f[] mats = {new Matrix4f(rawMats[0]), new Matrix4f(rawMats[1])}; return mats; }