The camera is defined by a position, orientation, and view frustum.
The orientation forms an orthonormal basis with a view, up and right = view x up unit vectors.
The viewing frustum is defined by 6 planes.
Each plane is represented by a Cartesian4 object, where the x, y, and z components
define the unit vector normal to the plane, and the w component is the distance of the
plane from the origin/camera position.
The camera is defined by a position, orientation, and view frustum.
The orientation forms an orthonormal basis with a view, up and right = view x up unit vectors.
The viewing frustum is defined by 6 planes. Each plane is represented by a Cartesian4 object, where the x, y, and z components define the unit vector normal to the plane, and the w component is the distance of the plane from the origin/camera position.
alias Camera
- {Scene} scene The scene.
demo Sandcastle Camera Demo demo Example from theAnnotations
@RawJSType()
@native()
@JSName(
"Cesium.Camera"
)
Example:
Linear Supertypes
Object, Any, AnyRef, Any
// Create a camera looking down the negative z-axis, positioned at the origin, // with a field of view of 60 degrees, and 1:1 aspect ratio. var camera = new Cesium.Camera(scene); camera.position = new Cesium.Cartesian3(); camera.direction = Cesium.Cartesian3.negate(Cesium.Cartesian3.UNIT_Z, new Cesium.Cartesian3()); camera.up = Cesium.Cartesian3.clone(Cesium.Cartesian3.UNIT_Y); camera.frustum.fov = Cesium.Math.PI_OVER_THREE; camera.frustum.near = 1.0; camera.frustum.far = 2.0;
Instance Constructors
new Camera(scene: Scene)
new Camera()
Value Members
final def !=(arg0: Any): Boolean
final def ##(): Int
final def ==(arg0: Any): Boolean
final def asInstanceOf[T0]: T0
def cameraToWorldCoordinates(cartesian: Cartesian4, result: Cartesian4 = ???): Cartesian4
def cameraToWorldCoordinatesPoint(cartesian: Cartesian3, result: Cartesian3 = ???): Cartesian3
def cameraToWorldCoordinatesVector(cartesian: Cartesian3, result: Cartesian3 = ???): Cartesian3
def cancelFlight(): Unit
def clone(): AnyRef
def computeViewRectangle(ellipsoid: Ellipsoid = ???, result: Rectangle = ???): |[Rectangle, Unit]
var constrainedAxis: Cartesian3
var defaultLookAmount: Double
var defaultMoveAmount: Double
var defaultRotateAmount: Double
var defaultZoomAmount: Double
var direction: Cartesian3
var directionWC: Cartesian3
def distanceToBoundingSphere(boundingSphere: BoundingSphere): Double
final def eq(arg0: AnyRef): Boolean
def equals(arg0: Any): Boolean
def finalize(): Unit
def flyHome(duration: Double = ???): Dynamic
def flyTo(options: CameraFlyToOptions): Dynamic
def flyToBoundingSphere(boundingSphere: BoundingSphere, options: CameraFlyToBoundingSphereOptions = ???): Dynamic
var frustum: Frustum
final def getClass(): Class[_]
def getMagnitude(): Double
def getPickRay(windowPosition: Cartesian2, result: Ray = ???): Ray
def getPixelSize(boundingSphere: BoundingSphere, drawingBufferWidth: Double, drawingBufferHeight: Double): Double
def getRectangleCameraCoordinates(rectangle: Rectangle, result: Cartesian3 = ???): Cartesian3
def hasOwnProperty(v: String): Boolean
def hashCode(): Int
var heading: Double
var inverseTransform: Matrix4
var inverseViewMatrix: Matrix4
final def isInstanceOf[T0]: Boolean
def isPrototypeOf(v: Object): Boolean
def look(axis: Cartesian3, angle: Double = ???): Dynamic
def lookAt(target: Cartesian3, offset: |[Cartesian3, HeadingPitchRange]): Dynamic
def lookAtTransform(transform: Matrix4, offset: |[Cartesian3, HeadingPitchRange] = ???): Dynamic
def lookDown(amount: Double = ???): Dynamic
def lookLeft(amount: Double = ???): Dynamic
def lookRight(amount: Double = ???): Dynamic
def lookUp(amount: Double = ???): Dynamic
var maximumTranslateFactor: Double
var maximumZoomFactor: Double
def move(direction: Cartesian3, amount: Double = ???): Dynamic
def moveBackward(amount: Double = ???): Dynamic
def moveDown(amount: Double = ???): Dynamic
var moveEnd: Event
def moveForward(amount: Double = ???): Dynamic
def moveLeft(amount: Double = ???): Dynamic
def moveRight(amount: Double = ???): Dynamic
var moveStart: Event
def moveUp(amount: Double = ???): Dynamic
final def ne(arg0: AnyRef): Boolean
final def notify(): Unit
final def notifyAll(): Unit
def pickEllipsoid(windowPosition: Cartesian2, ellipsoid: Ellipsoid = ???, result: Cartesian3 = ???): Cartesian3
var pitch: Double
var position: Cartesian3
var positionCartographic: Cartographic
var positionWC: Cartesian3
def propertyIsEnumerable(v: String): Boolean
var right: Cartesian3
var rightWC: Cartesian3
var roll: Double
def rotate(axis: Cartesian3, angle: Double = ???): Dynamic
def rotateDown(angle: Double = ???): Dynamic
def rotateLeft(angle: Double = ???): Dynamic
def rotateRight(angle: Double = ???): Dynamic
def rotateUp(angle: Double = ???): Dynamic
def setView(options: CameraSetViewOptions): Dynamic
final def synchronized[T0](arg0: ⇒ T0): T0
def toLocaleString(): String
def toString(): String
var transform: Matrix4
def twistLeft(amount: Double = ???): Dynamic
def twistRight(amount: Double = ???): Dynamic
var up: Cartesian3
var upWC: Cartesian3
def valueOf(): Any
def viewBoundingSphere(boundingSphere: BoundingSphere, offset: HeadingPitchRange = ???): Dynamic
var viewMatrix: Matrix4
final def wait(): Unit
final def wait(arg0: Long, arg1: Int): Unit
final def wait(arg0: Long): Unit
def worldToCameraCoordinates(cartesian: Cartesian4, result: Cartesian4 = ???): Cartesian4
def worldToCameraCoordinatesPoint(cartesian: Cartesian3, result: Cartesian3 = ???): Cartesian3
def worldToCameraCoordinatesVector(cartesian: Cartesian3, result: Cartesian3 = ???): Cartesian3
def zoomIn(amount: Double = ???): Dynamic
def zoomOut(amount: Double = ???): Dynamic
Inherited from Object
Inherited from Any
Inherited from AnyRef
Inherited from Any
Ungrouped