( worldX: number, worldY: number, worldZ: number, )
| 382 | * Used for zone labels, dimension references, interactive controls. |
| 383 | */ |
| 384 | export function projectToScreen( |
| 385 | worldX: number, worldY: number, worldZ: number, |
| 386 | ): { x: number; y: number; visible: boolean } { |
| 387 | const sx = bloom_project_to_screen(worldX, worldY, worldZ); |
| 388 | const sy = bloom_project_screen_y(); |
| 389 | return { |
| 390 | x: sx, |
| 391 | y: sy, |
| 392 | visible: sx > -9000, |
| 393 | }; |
| 394 | } |
| 395 | |
| 396 | // ============================================================ |
| 397 | // Scene Picking (raycasting from screen) |
no test coverage detected