API Docs for: 1.0.2
Show:

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

()

Inherited from GIScene.Control but overwritten in GIScene\Control\Compass.js:85

Activates this Control

deactivate

()

Inherited from GIScene.Control but overwritten in GIScene\Control\Compass.js:107

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.

isActive

Boolean