UNPKG

@awayjs/scene

Version:
32 lines 1.49 kB
import { Vector3D, ProjectionBase } from '@awayjs/core'; import { BoundingVolumeType } from '@awayjs/view'; import { DisplayObjectContainer } from './DisplayObjectContainer'; export declare class Camera extends DisplayObjectContainer { static assetType: string; private _projection; constructor(projection?: ProjectionBase); get assetType(): string; /** * */ get projection(): ProjectionBase; set projection(value: ProjectionBase); /** * Calculates the normalised position in screen space of the given scene position. * * @param point3d the position vector of the scene coordinates to be projected. * @return The normalised screen position of the given scene coordinates. */ project(position: Vector3D, target?: Vector3D): Vector3D; /** * Calculates the scene position of the given normalized coordinates in screen space. * * @param nX The normalised x coordinate in screen space, minus the originX offset of the projection property. * @param nY The normalised y coordinate in screen space, minus the originY offset of the projection property. * @param sZ The z coordinate in screen space, representing the distance into the screen. * @return The scene position of the given screen coordinates. */ unproject(nX: number, nY: number, sZ: number, target?: Vector3D): Vector3D; protected _getDefaultBoundingVolume(): BoundingVolumeType; } //# sourceMappingURL=Camera.d.ts.map