/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/. */
const uint32_t size = 16; float components[size] = {}; // In order to avoid some platforms which only copy // the first or last two bytes of a Float64 to a Float32. for (uint32_t i = 0; i < size; ++i) {
components[i] = mRawTransformMatrix.components[i];
}
Pose::SetFloat32Array(aCx, this, aRetval, mMatrixArray, components, 16,
aRv); if (!mMatrixArray) { return;
}
} if (mMatrixArray) {
JS::ExposeObjectToActiveJS(mMatrixArray);
}
aRetval.set(mMatrixArray);
}
already_AddRefed<XRRigidTransform> XRRigidTransform::Inverse() { if (!mInverse) {
gfx::Matrix4x4Double inverseMatrix = mRawTransformMatrix;
Unused << inverseMatrix.Invert();
mInverse = new XRRigidTransform(mParent, inverseMatrix);
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.