GIScene.Control.Compass Class
The Compass Control provides a graphical information on the current camera orientation, like a compass.
Constructor
GIScene.Control.Compass
(
-
camera
Parameters:
-
camera
THREE.Camera
Methods
activate
()
Activates this Control
deactivate
()
Deactivates this Control
getCompassDegrees
()
Number
Get Compass direction in degrees
Returns:
Number:
heading of compass in degrees
setScene
(
-
scene
Sets the scene property. This is automatically called on scene.addControl()
Parameters:
-
scene
Object
Properties
config
Object
The config which is used to initialize the Compass-Control. Merged from defaults and passed config Object.