Пример #1
0
        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));
        }
Пример #2
0
        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));
        }