MCPcopy Create free account
hub / github.com/Kitware/VTK / Stereo

Method Stereo

Common/Transforms/vtkPerspectiveTransform.cxx:386–391  ·  view source on GitHub ↗

------------------------------------------------------------------------------ For convenience -- this is sufficient for most people's stereo needs. Set the angle to negative for left eye, positive for right eye.

Source from the content-addressed store, hash-verified

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.
386void 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//------------------------------------------------------------------------------
394void vtkPerspectiveTransform::SetupCamera(

Callers 1

Calls 2

ShearMethod · 0.95
tanFunction · 0.50

Tested by

no test coverage detected