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

Function expectIdentity

src/utils/sim3dAlignment.test.ts:30–34  ·  view source on GitHub ↗
(sim3d: Sim3d)

Source from the content-addressed store, hash-verified

28}
29
30function expectIdentity(sim3d: Sim3d): void {
31 expect(sim3d.scale).toBe(1);
32 expect(sim3d.translation.length()).toBeCloseTo(0);
33 expect(sim3d.rotation.equals(new THREE.Quaternion())).toBe(true);
34}
35
36describe('sim3d alignment helpers', () => {
37 it('translates a selected point to the origin', () => {

Callers 1

Calls 1

lengthMethod · 0.45

Tested by

no test coverage detected