MCPcopy Create free account
hub / github.com/ColmapView/Colmapview.github.io / applySim3d

Function applySim3d

src/utils/sim3dAlignment.test.ts:11–17  ·  view source on GitHub ↗
(sim3d: Sim3d, point: THREE.Vector3)

Source from the content-addressed store, hash-verified

9} from './sim3dAlignment';
10
11function applySim3d(sim3d: Sim3d, point: THREE.Vector3): THREE.Vector3 {
12 return point
13 .clone()
14 .applyQuaternion(sim3d.rotation)
15 .multiplyScalar(sim3d.scale)
16 .add(sim3d.translation);
17}
18
19function triangleNormal(
20 p1: THREE.Vector3,

Callers 1

Calls 2

addMethod · 0.80
cloneMethod · 0.45

Tested by

no test coverage detected