def update(self):

        if not self.targetFrame:
            return


        r = self.properties.getProperty('Distance (m)')
        theta = np.radians(90 - self.properties.getProperty('Elevation (deg)'))
        phi = np.radians(self.properties.getProperty('Azimuth (deg)') - 180)

        x = r * np.cos(phi) * np.sin(theta)
        y = r * np.sin(phi) * np.sin(theta)
        z = r * np.cos(theta)


        c = self.camera
        targetToWorld = self.targetFrame.transform

        currentPosition = np.array(c.GetPosition())
        desiredPosition = np.array(targetToWorld.TransformPoint([x, y, z]))

        smoothTime = self.properties.getProperty('Smooth Time (s)')

        newPosition, self.currentVelocity = smoothDamp(currentPosition, desiredPosition, self.currentVelocity, smoothTime, maxSpeed=100, deltaTime=self.dt)

        trackerToWorld = transformUtils.getLookAtTransform(targetToWorld.GetPosition(), newPosition)

        c.SetFocalPoint(targetToWorld.GetPosition())
        c.SetPosition(trackerToWorld.GetPosition())
        self.view.render()
dataset/ETHPy150Open RobotLocomotion/director/src/python/director/cameracontrol.py/SmoothFollowTracker.update/swapped operands of `-`