import { Vector3 } from "../math/Vector3" ; import { Vector2 } from "../math/Vector2" ; hidden export namespace DebugInternal { export let externalLogger = ( ) => { } ; } export class Debug { static log ( ... args ) { const a = args . length === 1 ? args [ 0 ] : args ; console . log ( a ) ; DebugInternal . externalLogger ( a ) ; } static logError ( message ) { console . error ( message ) ; DebugInternal . externalLogger ( message ) ; } static logWarning ( message ) { console . warn ( message ) ; DebugInternal . externalLogger ( message ) ; } static logVector3 ( v ) { const log = `${ v . x }, ${ v . y }, ${ v . z }` ; console . log ( log ) ; DebugInternal . externalLogger ( log ) ; } static logVector2 ( v ) { const log = `${ v . x }, ${ v . y }` ; console . log ( log ) ; DebugInternal . externalLogger ( log ) ; } }