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

Function isSim3dEuler

src/utils/shareDataCodec.ts:69–80  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

67}
68
69function isSim3dEuler(value: unknown): value is Sim3dEuler {
70 if (!isObjectRecord(value)) return false;
71 return (
72 typeof value.scale === 'number' &&
73 typeof value.rotationX === 'number' &&
74 typeof value.rotationY === 'number' &&
75 typeof value.rotationZ === 'number' &&
76 typeof value.translationX === 'number' &&
77 typeof value.translationY === 'number' &&
78 typeof value.translationZ === 'number'
79 );
80}
81
82function isShareSplatConfig(value: unknown): boolean {
83 if (value === undefined) return true;

Callers 1

isShareConfigFunction · 0.85

Calls 1

isObjectRecordFunction · 0.70

Tested by

no test coverage detected