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

Function identitySim3d

src/utils/sim3dAlignment.ts:4–10  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2import type { Sim3d } from '../types/sim3d';
3
4function identitySim3d(): Sim3d {
5 return {
6 scale: 1,
7 rotation: new THREE.Quaternion(),
8 translation: new THREE.Vector3(),
9 };
10}
11
12/**
13 * Compute scale transform to set distance between two points to a target value.

Callers 2

computeDistanceScaleFunction · 0.70
computeNormalAlignmentFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected