UNPKG

@babylonjs/core

Version:

Getting started? Play directly with the Babylon.js API using our [playground](https://playground.babylonjs.com/). It also contains a lot of samples to learn how to use it.

61 lines (60 loc) 2.01 kB
/** * Limits for geospatial cameras with altitude/radius synchronization */ export declare class GeospatialLimits { private _altitudeMin; private _altitudeMax; private _planetRadius; private _radiusMin; private _radiusMax; /** Gets the minimum pitch angle (angle from horizon) -- 0 means looking straight down at planet */ pitchMin: number; /** Gets the maximum pitch angle (angle from horizon) -- Pi/1 means looking at horizon */ pitchMax: number; /** Gets the minimum yaw angle (rotation around up axis) */ yawMin: number; /** Gets the maximum yaw angle (rotation around up axis) */ yawMax: number; /** * Defines the distance used to consider the camera in pan mode vs pinch/zoom. * Basically if your fingers moves away from more than this distance you will be considered * in pinch mode. */ pinchToPanMax: number; /** * @param planetRadius The radius of the planet (used for altitude/radius conversions) */ constructor(planetRadius: number); /** * Gets the minimum altitude (height above planet surface) */ get altitudeMin(): number; /** * Sets the minimum altitude and syncs it with radius */ set altitudeMin(value: number); /** * Gets the maximum altitude (height above planet surface) */ get altitudeMax(): number; /** * Sets the maximum altitude and syncs it with radius */ set altitudeMax(value: number); get radiusMin(): number; /** * Sets the minimum radius and syncs it with altitude */ set radiusMin(value: number); get radiusMax(): number; /** * Sets the maximum radius and syncs it with altitude */ set radiusMax(value: number); /** * Gets the planet radius used for altitude/radius conversions */ get planetRadius(): number; /** Sets the planet radius and updates the radius limits to maintain current altitude */ set planetRadius(value: number); }