------------------------------------------------------------------------------ For convenience -- this is sufficient for most people's stereo needs. Set the angle to negative for left eye, positive for right eye.
| 384 | // For convenience -- this is sufficient for most people's stereo needs. |
| 385 | // Set the angle to negative for left eye, positive for right eye. |
| 386 | void vtkPerspectiveTransform::Stereo(double angle, double focaldistance) |
| 387 | { |
| 388 | double dxdz = tan(vtkMath::RadiansFromDegrees(angle)); |
| 389 | |
| 390 | this->Shear(dxdz, 0.0, focaldistance); |
| 391 | } |
| 392 | |
| 393 | //------------------------------------------------------------------------------ |
| 394 | void vtkPerspectiveTransform::SetupCamera( |
no test coverage detected