System4f.focalDistances

raytracing.System4f.focalDistances(self)

This is the synonym of effectiveFocalLengths()

Returns:

focalDistances – Returns the effective focal lengths on either side.

Return type:

array

Examples

>>> from raytracing import *
>>> # M1 is an ABCD matrix of a lens (f=5)
>>> M1= Matrix(A=1,B=0,C=-1/5,D=1,physicalLength=0,label='Lens')
>>> f1=M1.focalDistances()
>>> print('focal distances:' , f1)
focal distances: FocalLengths(f1=5.0, f2=5.0)

This function has the same out put as effectiveFocalLengths()

>>> f2=M1.effectiveFocalLengths()
>>> print('focal distances:' , f2)
focal distances: FocalLengths(f1=5.0, f2=5.0)