src/chroma/cpp/ThinLensCamera.cpp
void ThinLensCamera::setStopNumber(const float newStopNumber) {
    ap.scaleAbs((focalDist / newStopNumber) * 0.5f);
    stopNumber = newStopNumber;
    updateSampler();
}
// Never forget: WIKIPEDIA: If a lens's focal length is 10 mm and its entrance pupil diameter is 5 mm,
// the f-number N is 2 and the aperture diameter is f/2. N = f/D -> pupilRadius = (f/N)/2
Never forget: WIKIPEDIA: If a lens's focal length is 10 mm and its entrance pupil diameter is 5 mm,
the f-number N is 2 and the aperture diameter is f/2.
Never forget : WIKIPEDIA : If a lens ' s focal length is 10 mm and its entrance pupil diameter is 5 mm the f - number N is 2 and the aperture diameter is f / 2 .
void ThinLensCamera::setStopNumber(const float newStopNumber) {
    ap.scaleAbs((focalDist / newStopNumber) * 0.5f);
    stopNumber = newStopNumber;
    updateSampler();
}
void ThinLensCamera :: setStopNumber ( const float newStopNumber ) { ap . scaleAbs ( ( focalDist / newStopNumber ) * 0.5f ) ; stopNumber = newStopNumber ; updateSampler ( ) ; }
Never forget: WIKIPEDIA: If a lens's focal length is 10 mm and its entrance pupil diameter is 5 mm,
the f-number N is 2 and the aperture diameter is f/2.
Never forget : WIKIPEDIA : If a lens ' s focal length is 10 mm and its entrance pupil diameter is 5 mm the f - number N is 2 and the aperture diameter is f / 2 .