API / geotoolkit3d / scene / compass / Compass / Compass
A 3D compass.
This class adds a canvas in the given HTML element that will be used to render a 3D compass shape.
The compass will rotate the camera to look at the compass shape in the same direction that the parent plot is looking.
The compass shape itself can be static.
Constructors
Methods
▸ getClassName(): string
string
▸ getCompassObject(): Object3D<Object3DEventMap>
Return the compass shape
Object3D<Object3DEventMap>
The compass shape
▸ setCompassObject(newObject): Compass
Sets the compass shape
| Name | Type | Description |
|---|---|---|
newObject | Object3D<Object3DEventMap> | The new compass shape |
this
▸ Static getClassName(): string
string