export class TeleportUtils { private static readonly EPS = 0.000001 ; static getBuggyRotationConstant ( sourceY , targetY ) { const sBuggy = this . isRotationBuggy ( sourceY ) ; const tBuggy = this . isRotationBuggy ( targetY ) ; const isBuggy = ( sBuggy || tBuggy ) && ! ( sBuggy && tBuggy ) ; return ! isBuggy ? Math . PI : 0 ; } private static isRotationBuggy ( y ) { return Math . abs ( y ) < TeleportUtils . EPS && y !== 0 ; } }