getFov

Gets the current field of view for the active sphere, passes it to the optional callback function (if provided), and returns it.

See sendData for how to set this value.

Parameter:

  • callback (function): (OPTIONAL) A callback function to execute. It will be passed the following automatically:

    • cameraFov (number): A number representing the current field of view

Returns: A promise that resolves to cameraFov: A number representing the current field of view

Code Sample