@loaders.gl/math
Version:
Experimental math classes for loaders.gl
9 lines (8 loc) • 334 B
text/typescript
// Replacement for the external assert method to reduce bundle size
// Note: We don't use the second "message" argument in calling code,
// so no need to support it here
export function assert(condition: Boolean, message?: string): void {
if (!condition) {
throw new Error(message || '3d-tile loader: assertion failed.');
}
}