@JsType(isNative=true, namespace="Cesium", name="Camera") public class Camera extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
Camera.ChangedListener |
static interface |
Camera.FlightCancelledCallback
A function that will execute when a flight is cancelled.
|
static interface |
Camera.FlightCompleteCallback
A function that will execute when a flight completes.
|
static interface |
Camera.MoveListener |
Modifier and Type | Field and Description |
---|---|
Cartesian3 |
constrainedAxis
If set, the camera will not be able to rotate past this axis in either direction.
|
static HeadingPitchRange |
DEFAULT_OFFSET
The default heading/pitch/range that is used when the camera flies to a location that contains a bounding sphere.
|
static double |
DEFAULT_VIEW_FACTOR
A scalar to multiply to the camera position and add it back after setting the camera to view the rectangle.
|
static Rectangle |
DEFAULT_VIEW_RECTANGLE
The default rectangle the camera will view on creation.
|
double |
defaultLookAmount
The default amount to rotate the camera when an argument is not provided to the look methods.
|
double |
defaultMoveAmount
The default amount to move the camera when an argument is not provided to the move methods.
|
double |
defaultRotateAmount
The default amount to rotate the camera when an argument is not provided to the rotate methods.
|
double |
defaultZoomAmount
The default amount to move the camera when an argument is not provided to the zoom methods.
|
Cartesian3 |
direction
The view direction of the camera.
|
Frustum |
frustum
The region of space in view.
|
double |
maximumZoomFactor
The factor multiplied by the the map size used to determine where to clamp the camera position when zooming
out from the surface.
|
float |
percentageChanged
The amount the camera has to change before the changed event is raised.
|
Cartesian3 |
position
The position of the camera.
|
Cartesian3 |
right
The right direction of the camera.
|
Cartesian3 |
up
The up direction of the camera.
|
Constructor and Description |
---|
Camera(Scene scene)
The camera is defined by a position, orientation, and view frustum.
|
Modifier and Type | Method and Description |
---|---|
Cartesian4 |
cameraToWorldCoordinates(Cartesian4 cartesian)
Transform a vector or point from the camera's reference frame to world coordinates.
|
Cartesian4 |
cameraToWorldCoordinates(Cartesian4 cartesian,
Cartesian4 result)
Transform a vector or point from the camera's reference frame to world coordinates.
|
Cartesian3 |
cameraToWorldCoordinatesPoint(Cartesian3 cartesian)
Transform a point from the camera's reference frame to world coordinates.
|
Cartesian3 |
cameraToWorldCoordinatesPoint(Cartesian3 cartesian,
Cartesian3 result)
Transform a point from the camera's reference frame to world coordinates.
|
Cartesian3 |
cameraToWorldCoordinatesVector(Cartesian3 cartesian)
Transform a vector from the camera's reference frame to world coordinates.
|
Cartesian3 |
cameraToWorldCoordinatesVector(Cartesian3 cartesian,
Cartesian3 result)
Transform a vector from the camera's reference frame to world coordinates.
|
void |
cancelFlight()
Cancels the current camera flight if one is in progress.
|
Event |
changed()
Gets the event that will be raised when the camera has changed by percentageChanged.
|
Rectangle |
computeViewRectangle()
Computes the approximate visible rectangle on the ellipsoid.
|
Rectangle |
computeViewRectangle(Ellipsoid ellipsoid)
Computes the approximate visible rectangle on the ellipsoid.
|
Rectangle |
computeViewRectangle(Ellipsoid ellipsoid,
Rectangle result)
Computes the approximate visible rectangle on the ellipsoid.
|
Cartesian3 |
directionWC()
Gets the view direction of the camera in world coordinates.
|
double |
distanceToBoundingSphere(BoundingSphere boundingSphere)
Return the distance from the camera to the front of the bounding sphere.
|
void |
flyHome()
Fly the camera to the home view.
|
void |
flyHome(double duration)
Fly the camera to the home view.
|
void |
flyTo(CameraFlyToOptions options)
Flies the camera from its current position to a new position.
|
void |
flyToBoundingSphere(BoundingSphere boundingSphere,
CameraFlyToOptions options)
Flies the camera to a location where the current view contains the provided bounding sphere.
|
double |
getMagnitude()
Gets the magnitude of the camera position.
|
Ray |
getPickRay(Cartesian2 windowPosition)
Create a ray from the camera position through the pixel at windowPosition in world coordinates.
|
Ray |
getPickRay(Cartesian2 windowPosition,
Ray result)
Create a ray from the camera position through the pixel at windowPosition in world coordinates.
|
double |
getPixelSize(BoundingSphere boundingSphere,
double drawingBufferWidth,
double drawingBufferHeight)
Return the pixel size in meters.
|
Cartesian3 |
getRectangleCameraCoordinates(Rectangle rectangle)
Get the camera position needed to view an rectangle on an ellipsoid or map
|
Cartesian3 |
getRectangleCameraCoordinates(Rectangle rectangle,
Cartesian3 result)
Get the camera position needed to view an rectangle on an ellipsoid or map
|
double |
heading()
Gets the camera heading in radians.
|
Matrix4 |
inverseTransform()
Gets the inverse camera transform.
|
Matrix4 |
inverseViewMatrix()
Gets the inverse view matrix.
|
void |
look(Cartesian3 axis)
Rotate each of the camera's orientation vectors around axis by angle
|
void |
look(Cartesian3 axis,
double angle)
Rotate each of the camera's orientation vectors around axis by angle
|
void |
lookAt(Cartesian3 target,
Cartesian3 offset)
Sets the camera position and orientation using a target and offset.
|
void |
lookAt(Cartesian3 target,
HeadingPitchRange offset)
Sets the camera position and orientation using a target and offset.
|
void |
lookAtTransform(Matrix4 transform)
Sets the camera position and orientation using a target and transformation matrix.
|
void |
lookAtTransform(Matrix4 transform,
Cartesian3 offset)
Sets the camera position and orientation using a target and transformation matrix.
|
void |
lookAtTransform(Matrix4 transform,
HeadingPitchRange offset)
Sets the camera position and orientation using a target and transformation matrix.
|
void |
lookDown()
Rotates the camera around its right vector by amount, in radians, in the opposite direction of its up vector.
|
void |
lookDown(double amount)
Rotates the camera around its right vector by amount, in radians, in the opposite direction of its up vector.
|
void |
lookLeft()
Rotates the camera around its up vector by amount, in radians, in the opposite direction of its right vector.
|
void |
lookLeft(double amount)
Rotates the camera around its up vector by amount, in radians, in the opposite direction of its right vector.
|
void |
lookRight()
Rotates the camera around its up vector by amount, in radians, in the direction of its right vector.
|
void |
lookRight(double amount)
Rotates the camera around its up vector by amount, in radians, in the direction of its right vector.
|
void |
lookUp()
Rotates the camera around its right vector by amount, in radians, in the direction of its up vector.
|
void |
lookUp(double amount)
Rotates the camera around its right vector by amount, in radians, in the direction of its up vector.
|
void |
move(Cartesian3 direction)
Translates the camera's position by amount along direction.
|
void |
move(Cartesian3 direction,
double amount)
Translates the camera's position by amount along direction.
|
void |
moveBackward()
Translates the camera's position by amount along the opposite direction of the camera's view vector.
|
void |
moveBackward(double amount)
Translates the camera's position by amount along the opposite direction of the camera's view vector.
|
void |
moveDown()
Translates the camera's position by amount along the opposite direction of the camera's up vector.
|
void |
moveDown(double amount)
Translates the camera's position by amount along the opposite direction of the camera's up vector.
|
Event |
moveEnd()
Gets the event that will be raised when the camera has stopped moving.
|
void |
moveForward()
Translates the camera's position by amount along the camera's view vector.
|
void |
moveForward(double amount)
Translates the camera's position by amount along the camera's view vector.
|
void |
moveLeft()
Translates the camera's position by amount along the opposite direction of the camera's right vector.
|
void |
moveLeft(double amount)
Translates the camera's position by amount along the opposite direction of the camera's right vector.
|
void |
moveRight()
Translates the camera's position by amount along the camera's right vector.
|
void |
moveRight(double amount)
Translates the camera's position by amount along the camera's right vector.
|
Event |
moveStart()
Gets the event that will be raised at when the camera starts to move.
|
void |
moveUp()
Translates the camera's position by amount along the camera's up vector.
|
void |
moveUp(double amount)
Translates the camera's position by amount along the camera's up vector.
|
Cartesian3 |
pickEllipsoid(Cartesian2 windowPosition)
Pick an ellipsoid or map.
|
Cartesian3 |
pickEllipsoid(Cartesian2 windowPosition,
Ellipsoid ellipsoid)
Pick an ellipsoid or map.
|
Cartesian3 |
pickEllipsoid(Cartesian2 windowPosition,
Ellipsoid ellipsoid,
Cartesian3 result)
Pick an ellipsoid or map.
|
double |
pitch()
Gets the camera pitch in radians.
|
Cartographic |
positionCartographic()
Gets the Cartographic position of the camera, with longitude and latitude expressed in radians and height in meters.
|
Cartesian3 |
positionWC()
Gets the position of the camera in world coordinates.
|
Cartesian3 |
rightWC()
Gets the right direction of the camera in world coordinates.
|
double |
roll()
Gets the camera roll in radians.
|
void |
rotate(Cartesian3 axis)
Rotates the camera around axis by angle.
|
void |
rotate(Cartesian3 axis,
double angle)
Rotates the camera around axis by angle.
|
void |
rotateDown()
Rotates the camera around the center of the camera's reference frame by angle downwards.
|
void |
rotateDown(double angle)
Rotates the camera around the center of the camera's reference frame by angle downwards.
|
void |
rotateLeft()
Rotates the camera around the center of the camera's reference frame by angle to the left.
|
void |
rotateLeft(double angle)
Rotates the camera around the center of the camera's reference frame by angle to the left.
|
void |
rotateRight()
Rotates the camera around the center of the camera's reference frame by angle to the right.
|
void |
rotateRight(double angle)
Rotates the camera around the center of the camera's reference frame by angle to the right.
|
void |
rotateUp(double angle)
Rotates the camera around the center of the camera's reference frame by angle upwards.
|
void |
setView(ViewOptions options)
Sets the camera position, orientation and transform.
|
void |
switchToOrthographicFrustum()
Switches the frustum/projection to orthographic.
|
void |
switchToPerspectiveFrustum()
Switches the frustum/projection to perspective.
|
Matrix4 |
transform()
Gets the camera's reference frame.
|
void |
twistLeft()
Rotate the camera counter-clockwise around its direction vector by amount, in radians.
|
void |
twistLeft(double amount)
Rotate the camera counter-clockwise around its direction vector by amount, in radians.
|
void |
twistRight()
Rotate the camera counter-clockwise around its direction vector by amount, in radians.
|
void |
twistRight(double amount)
Rotate the camera counter-clockwise around its direction vector by amount, in radians.
|
Cartesian3 |
upWC()
Gets the up direction of the camera in world coordinates.
|
void |
viewBoundingSphere(BoundingSphere boundingSphere)
Sets the camera so that the current view contains the provided bounding sphere.
|
void |
viewBoundingSphere(BoundingSphere boundingSphere,
HeadingPitchRange offset)
Sets the camera so that the current view contains the provided bounding sphere.
|
Matrix4 |
viewMatrix()
Gets the view matrix.
|
Cartesian4 |
worldToCameraCoordinates(Cartesian4 cartesian)
Transform a vector or point from world coordinates to the camera's reference frame.
|
Cartesian4 |
worldToCameraCoordinates(Cartesian4 cartesian,
Cartesian4 result)
Transform a vector or point from world coordinates to the camera's reference frame.
|
Cartesian3 |
worldToCameraCoordinatesPoint(Cartesian3 cartesian)
Transform a point from world coordinates to the camera's reference frame.
|
Cartesian3 |
worldToCameraCoordinatesPoint(Cartesian3 cartesian,
Cartesian3 result)
Transform a point from world coordinates to the camera's reference frame.
|
Cartesian3 |
worldToCameraCoordinatesVector(Cartesian3 cartesian)
Transform a vector from world coordinates to the camera's reference frame.
|
Cartesian3 |
worldToCameraCoordinatesVector(Cartesian3 cartesian,
Cartesian3 result)
Transform a vector from world coordinates to the camera's reference frame.
|
void |
zoomIn()
Zooms amount along the camera's view vector.
|
void |
zoomIn(double amount)
Zooms amount along the camera's view vector.
|
void |
zoomOut()
Zooms amount along the opposite direction of the camera's view vector.
|
void |
zoomOut(double amount)
Zooms amount along the opposite direction of the camera's view vector.
|
@JsProperty public static HeadingPitchRange DEFAULT_OFFSET
@JsProperty public static double DEFAULT_VIEW_FACTOR
DEFAULT_VIEW_RECTANGLE
,
a value greater than zero will move it further away from the extent, and a value less than zero will move it close to the extent.@JsProperty public static Rectangle DEFAULT_VIEW_RECTANGLE
@JsProperty public Cartesian3 constrainedAxis
@JsProperty public double defaultLookAmount
@JsProperty public double defaultMoveAmount
@JsProperty public double defaultRotateAmount
@JsProperty public double defaultZoomAmount
@JsProperty public Cartesian3 direction
@JsProperty public Frustum frustum
@JsProperty public double maximumZoomFactor
@JsProperty public float percentageChanged
@JsProperty public Cartesian3 position
@JsProperty public Cartesian3 right
@JsProperty public Cartesian3 up
@JsConstructor public Camera(Scene scene)
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.scene
- The scene.@JsProperty(name="changed") public Event changed()
@JsProperty(name="directionWC") public Cartesian3 directionWC()
@JsProperty(name="heading") public double heading()
@JsProperty(name="inverseTransform") public Matrix4 inverseTransform()
@JsProperty(name="inverseViewMatrix") public Matrix4 inverseViewMatrix()
viewMatrix()
@JsProperty(name="moveEnd") public Event moveEnd()
@JsProperty(name="moveStart") public Event moveStart()
@JsProperty(name="pitch") public double pitch()
@JsProperty(name="positionCartographic") public Cartographic positionCartographic()
@JsProperty(name="positionWC") public Cartesian3 positionWC()
@JsProperty(name="rightWC") public Cartesian3 rightWC()
@JsProperty(name="roll") public double roll()
@JsProperty(name="transform") public Matrix4 transform()
@JsProperty(name="upWC") public Cartesian3 upWC()
@JsProperty(name="viewMatrix") public Matrix4 viewMatrix()
inverseViewMatrix()
@JsMethod public Cartesian4 cameraToWorldCoordinates(Cartesian4 cartesian)
cartesian
- The vector or point to transform.@JsMethod public Cartesian4 cameraToWorldCoordinates(Cartesian4 cartesian, Cartesian4 result)
cartesian
- The vector or point to transform.result
- The object onto which to store the result.@JsMethod public Cartesian3 cameraToWorldCoordinatesPoint(Cartesian3 cartesian)
cartesian
- The point to transform.@JsMethod public Cartesian3 cameraToWorldCoordinatesPoint(Cartesian3 cartesian, Cartesian3 result)
cartesian
- The point to transform.result
- The object onto which to store the result.@JsMethod public Cartesian3 cameraToWorldCoordinatesVector(Cartesian3 cartesian)
cartesian
- The vector to transform.@JsMethod public Cartesian3 cameraToWorldCoordinatesVector(Cartesian3 cartesian, Cartesian3 result)
cartesian
- The vector to transform.result
- The object onto which to store the result.@JsMethod public void cancelFlight()
@JsMethod public Rectangle computeViewRectangle()
@JsMethod public Rectangle computeViewRectangle(Ellipsoid ellipsoid)
ellipsoid
- The ellipsoid that you want to know the visible region. Default: Ellipsoid.WGS84()
@JsMethod public Rectangle computeViewRectangle(Ellipsoid ellipsoid, Rectangle result)
ellipsoid
- The ellipsoid that you want to know the visible region. Default: Ellipsoid.WGS84()
result
- The rectangle in which to store the result@JsMethod public double distanceToBoundingSphere(BoundingSphere boundingSphere)
boundingSphere
- The bounding sphere in world coordinates.@JsMethod public void flyHome()
DEFAULT_VIEW_RECTANGLE
to set the default view for the 3D scene.
The home view for 2D and columbus view shows the entire map.@JsMethod public void flyHome(double duration)
DEFAULT_VIEW_RECTANGLE
to set the default view for the 3D scene.
The home view for 2D and columbus view shows the entire map.duration
- The number of seconds to complete the camera flight to home. @see #flyTo@JsMethod public void flyTo(CameraFlyToOptions options)
options
- Options.@JsMethod public void flyToBoundingSphere(BoundingSphere boundingSphere, CameraFlyToOptions options)
boundingSphere
- The bounding sphere to view, in world coordinates.options
- Options@JsMethod public double getMagnitude()
@JsMethod public Ray getPickRay(Cartesian2 windowPosition)
windowPosition
- The x and y coordinates of a pixel.@JsMethod public Ray getPickRay(Cartesian2 windowPosition, Ray result)
windowPosition
- The x and y coordinates of a pixel.result
- The object onto which to store the result.@JsMethod public double getPixelSize(BoundingSphere boundingSphere, double drawingBufferWidth, double drawingBufferHeight)
boundingSphere
- The bounding sphere in world coordinates.drawingBufferWidth
- The drawing buffer width.drawingBufferHeight
- The drawing buffer height.@JsMethod public Cartesian3 getRectangleCameraCoordinates(Rectangle rectangle)
rectangle
- The rectangle to view.@JsMethod public Cartesian3 getRectangleCameraCoordinates(Rectangle rectangle, Cartesian3 result)
rectangle
- The rectangle to view.result
- The camera position needed to view the rectangle@JsMethod public void look(Cartesian3 axis)
axis
- The axis to rotate around.lookUp()
,
lookDown()
,
lookLeft()
,
lookRight()
@JsMethod public void look(Cartesian3 axis, double angle)
axis
- The axis to rotate around.angle
- The angle, in radians, to rotate by. Defaults to defaultLookAmount.lookUp()
,
lookDown()
,
lookLeft()
,
lookRight()
@JsMethod public void lookAt(Cartesian3 target, Cartesian3 offset)
target
- The target position in world coordinates.offset
- The offset from the target in the local east-north-up reference frame centered at the target.@JsMethod public void lookAt(Cartesian3 target, HeadingPitchRange offset)
target
- The target position in world coordinates.offset
- The offset from the target in the local east-north-up reference frame centered at the target.@JsMethod public void lookAtTransform(Matrix4 transform)
transform
- The transformation matrix defining the reference frame.@JsMethod public void lookAtTransform(Matrix4 transform, Cartesian3 offset)
transform
- The transformation matrix defining the reference frame.offset
- The offset from the target in a reference frame centered at the target.@JsMethod public void lookAtTransform(Matrix4 transform, HeadingPitchRange offset)
transform
- The transformation matrix defining the reference frame.offset
- The offset from the target in a reference frame centered at the target.@JsMethod public void lookDown()
lookUp()
@JsMethod public void lookDown(double amount)
amount
- The amount, in radians, to rotate by. Default: defaultLookAmount
lookUp()
@JsMethod public void lookLeft()
lookRight()
@JsMethod public void lookLeft(double amount)
amount
- The amount, in radians, to rotate by. Default: defaultLookAmount
lookRight()
@JsMethod public void lookRight()
lookLeft()
@JsMethod public void lookRight(double amount)
amount
- The amount, in radians, to rotate by. Default: defaultLookAmount
lookLeft()
@JsMethod public void lookUp()
lookDown()
@JsMethod public void lookUp(double amount)
amount
- The amount, in radians, to rotate by. Default: defaultLookAmount
.lookDown()
@JsMethod public void move(Cartesian3 direction)
direction
- The direction to move.@JsMethod public void move(Cartesian3 direction, double amount)
direction
- The direction to move.amount
- The amount, in meters, to move. Defaults to defaultMoveAmount.moveBackward()
,
moveForward()
,
moveLeft()
,
moveRight()
,
moveUp()
,
moveDown()
@JsMethod public void moveBackward()
moveForward()
@JsMethod public void moveBackward(double amount)
amount
- The amount, in meters, to move. Defaults to defaultMoveAmount.moveForward()
@JsMethod public void moveDown()
moveUp()
@JsMethod public void moveDown(double amount)
amount
- The amount, in meters, to move. Defaults to defaultMoveAmount.moveUp()
@JsMethod public void moveForward()
moveBackward()
@JsMethod public void moveForward(double amount)
amount
- The amount, in meters, to move. Defaults to defaultMoveAmount.moveBackward()
@JsMethod public void moveLeft()
moveRight()
@JsMethod public void moveLeft(double amount)
amount
- The amount, in meters, to move. Defaults to defaultMoveAmount.moveRight()
public void moveRight()
moveLeft()
@JsMethod public void moveRight(double amount)
amount
- The amount, in meters, to move. Defaults to defaultMoveAmount.moveLeft()
@JsMethod public void moveUp()
moveDown()
@JsMethod public void moveUp(double amount)
amount
- The amount, in meters, to move. Defaults to defaultMoveAmount.moveDown()
@JsMethod public Cartesian3 pickEllipsoid(Cartesian2 windowPosition)
windowPosition
- The x and y coordinates of a pixel.@JsMethod public Cartesian3 pickEllipsoid(Cartesian2 windowPosition, Ellipsoid ellipsoid)
windowPosition
- The x and y coordinates of a pixel.ellipsoid
- The ellipsoid to pick. Default: Ellipsoid.WGS84()
@JsMethod public Cartesian3 pickEllipsoid(Cartesian2 windowPosition, Ellipsoid ellipsoid, Cartesian3 result)
windowPosition
- The x and y coordinates of a pixel.ellipsoid
- The ellipsoid to pick. Default: Ellipsoid.WGS84()
result
- The object onto which to store the result.@JsMethod public void rotate(Cartesian3 axis)
axis
- The axis to rotate around given in world coordinates.rotateUp(double)
,
rotateDown()
,
rotateLeft()
,
rotateRight()
@JsMethod public void rotate(Cartesian3 axis, double angle)
axis
- The axis to rotate around given in world coordinates.angle
- The angle, in radians, to rotate by. Defaults to defaultRotateAmount.rotateUp(double)
,
rotateDown()
,
rotateLeft()
,
rotateRight()
@JsMethod public void rotateDown()
@JsMethod public void rotateDown(double angle)
angle
- The angle, in radians, to rotate by. Defaults to defaultRotateAmount.rotateUp(double)
,
rotate(org.cesiumjs.cs.core.Cartesian3)
,
rotate(org.cesiumjs.cs.core.Cartesian3, double)
@JsMethod public void rotateLeft()
@JsMethod public void rotateLeft(double angle)
angle
- The angle, in radians, to rotate by. Defaults to defaultRotateAmount.rotateRight()
,
rotate(org.cesiumjs.cs.core.Cartesian3)
@JsMethod public void rotateRight()
@JsMethod public void rotateRight(double angle)
angle
- The angle, in radians, to rotate by. Defaults to defaultRotateAmount.rotateLeft()
,
rotate(org.cesiumjs.cs.core.Cartesian3)
@JsMethod public void rotateUp(double angle)
angle
- The angle, in radians, to rotate by. Defaults to defaultRotateAmount.rotateDown()
,
rotate(org.cesiumjs.cs.core.Cartesian3)
@JsMethod public void setView(ViewOptions options)
options
- Options@JsMethod public void switchToOrthographicFrustum()
@JsMethod public void switchToPerspectiveFrustum()
@JsMethod public void twistLeft()
twistRight()
@JsMethod public void twistLeft(double amount)
amount
- The amount, in radians, to rotate by. Defaults to defaultLookAmount.twistRight()
@JsMethod public void twistRight()
twistLeft()
@JsMethod public void twistRight(double amount)
amount
- The amount, in radians, to rotate by. Defaults to defaultLookAmount.twistLeft()
@JsMethod public void viewBoundingSphere(BoundingSphere boundingSphere)
boundingSphere
- The bounding sphere to view, in world coordinates.@JsMethod public void viewBoundingSphere(BoundingSphere boundingSphere, HeadingPitchRange offset)
boundingSphere
- The bounding sphere to view, in world coordinates.offset
- The offset from the target in the local east-north-up reference frame centered at the target.@JsMethod public Cartesian4 worldToCameraCoordinates(Cartesian4 cartesian)
cartesian
- The vector or point to transform.@JsMethod public Cartesian4 worldToCameraCoordinates(Cartesian4 cartesian, Cartesian4 result)
cartesian
- The vector or point to transform.result
- The object onto which to store the result.@JsMethod public Cartesian3 worldToCameraCoordinatesPoint(Cartesian3 cartesian)
cartesian
- The point to transform.@JsMethod public Cartesian3 worldToCameraCoordinatesPoint(Cartesian3 cartesian, Cartesian3 result)
cartesian
- The point to transform.result
- The object onto which to store the result.@JsMethod public Cartesian3 worldToCameraCoordinatesVector(Cartesian3 cartesian)
cartesian
- The vector to transform.@JsMethod public Cartesian3 worldToCameraCoordinatesVector(Cartesian3 cartesian, Cartesian3 result)
cartesian
- The vector to transform.result
- The object onto which to store the result.@JsMethod public void zoomIn()
zoomOut()
@JsMethod public void zoomIn(double amount)
amount
- The amount to move. Defaults to defaultZoomAmount.zoomOut()
@JsMethod public void zoomOut()
zoomIn()
@JsMethod public void zoomOut(double amount)
amount
- The amount to move. Defaults to defaultZoomAmount.zoomIn()
Copyright © 2019. All rights reserved.