public LensRayTransferFunction.Parameters ConvertFrontSurfaceRayToParameters(Ray ray) { Vector3d canonicalNormal = -Vector3d.UnitZ; double surfaceSinTheta = frontSurfaceSinTheta; Sphere sphericalSurface = frontSphericalSurface; ElementSurface surface = ElementSurfaces.Last(); return(ConvertSurfaceRayToParameters(ray, canonicalNormal, surfaceSinTheta, sphericalSurface, surface)); }
public Ray ConvertParametersToFrontSurfaceRay( LensRayTransferFunction.Parameters parameters) { Vector3d canonicalNormal = -Vector3d.UnitZ; double surfaceSinTheta = frontSurfaceSinTheta; Sphere sphericalSurface = frontSphericalSurface; ElementSurface surface = ElementSurfaces.Last(); return(ConvertParametersToSurfaceRay(parameters, canonicalNormal, surfaceSinTheta, sphericalSurface, surface)); }