Merge pull request #1506 from j9ac9k/fix-typo-in-glviewwidget
Fixed typo in GLViewWidget
This commit is contained in:
commit
122f3077d3
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user