MCPcopy Index your code
hub / github.com/ColmapView/Colmapview.github.io / isIdentityEuler

Function isIdentityEuler

src/utils/sim3dTransforms.ts:304–315  ·  view source on GitHub ↗
(euler: Sim3dEuler)

Source from the content-addressed store, hash-verified

302 * Check if a Sim3dEuler represents an identity transform.
303 */
304export function isIdentityEuler(euler: Sim3dEuler): boolean {
305 const epsilon = 1e-9;
306 return (
307 Math.abs(euler.scale - 1) < epsilon &&
308 Math.abs(euler.rotationX) < epsilon &&
309 Math.abs(euler.rotationY) < epsilon &&
310 Math.abs(euler.rotationZ) < epsilon &&
311 Math.abs(euler.translationX) < epsilon &&
312 Math.abs(euler.translationY) < epsilon &&
313 Math.abs(euler.translationZ) < epsilon
314 );
315}

Callers 13

getSplatModelTransformFunction · 0.90
Scene3DE2EProbeFunction · 0.90
SceneContentFunction · 0.90
getTransformPanelStateFunction · 0.90
ExportPanel.tsxFile · 0.90
getShareTransformFunction · 0.90
hasUnsavedReloadStateFunction · 0.85
applyTransformPresetFunction · 0.85
applyTransformToDataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected