Merge pull request #1506 from j9ac9k/fix-typo-in-glviewwidget

Fixed typo in GLViewWidget
This commit is contained in:
Ogi Moore 2021-01-21 09:06:57 -08:00 committed by GitHub
commit 122f3077d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -374,7 +374,7 @@ class GLViewWidget(QtWidgets.QOpenGLWidget):
elev = np.radians(self.opts['elevation'])
azim = np.radians(self.opts['azimuth'])
fov = np.radians(self.opts['fov'])
dist = (self.opts['center'] - self.camerPosition()).length()
dist = (self.opts['center'] - self.cameraPosition()).length()
fov_factor = np.tan(fov / 2) * 2
scale_factor = dist * fov_factor / self.width()
z = scale_factor * np.cos(elev) * dy