docstr: Return current position of camera based on center, dist, elevation, and azimuth
docstr_tok: ["Return","current","position","of","camera","based","on","center",",","dist",",","elevation",",","and","azimuth"]
code: def cameraPosition(self):
      """Return current position of camera based on center, dist, elevation, and azimuth"""
      center = self.opts["center"]
      dist = self.opts["distance"]
      if self.opts["rotationMethod"] == "quaternion":
          pos = Vector(
              center
              - self.opts["rotation"].rotatedVector(Vector(0, 0, dist))
          )
      else:
          # using 'euler' rotation method
          elev = radians(self.opts["elevation"])
          azim = radians(self.opts["azimuth"])
          pos = Vector(
              center.x() + dist * cos(elev) * cos(azim),
              center.y() + dist * cos(elev) * sin(azim),
              center.z() + dist * sin(elev),
          )
      return pos
  
imports: from OpenGL.GL import *
  import OpenGL.GL.framebufferobjects
  from math import cos, radians, sin, tan
  import numpy
  from ..None import Vector
  from ..None import functions
  from ..None import getConfigOption
  from ..Qt import QtCore, QtGui, QtWidgets
label_desc: Use image node_id 19 for calling the GLViewMixin obj's underlying member method code with example usage: obj.cameraPosition() and returns: pos