import { Camera } from '../../camera/3d/camera'; import { Vec3 } from '../../math/vec3'; import { WorldManager } from '../world.manager'; import { WorldConfig } from './world.config'; /** * Concrete 3D World, a WorldManager setting out 3D-specific properties and behavior, providing type safety for Aura3D * * NB: the default 3D Camera uses Perspective Projection * * NB: World (0,0,0) is considered to be in the center, with: * - positive X -> right * - positive Y -> up * - positive Z -> "out" * ...and World coordinate limits: * - left : -dimensions.x / 2 * - right : dimensions.x / 2 * - bottom : -dimensions.y / 2 * - top : dimensions.y / 2 * - far : -dimensions.z / 2 * - near : dimensions.z / 2 */ export declare class World extends WorldManager { /** Concrete 3D active Camera */ readonly activeCamera: Camera; /** Concrete mapping of named 3D Cameras */ protected readonly cameras: Map; /** * Constructor. Pass a 3D WorldConfig to the parent class and initialise the default 3D Camera * * @param config the 3D WorldConfig */ constructor(config: WorldConfig); /** * Get the 3D World dimensions */ get dimensions(): Vec3; /** * Add a 2D Camera to the World * * @param camera the 3D Camera to add */ addCamera(camera: Camera): void; /** * Retrieve a named 3D Camera * * Throws an error if the Camera is not found for runtime safety * * @param name the name of the 3D Camera to retrieve * * @returns the named 3D Camera */ getCamera(name: string): Camera; }