Raytracing is used in many applications to simulate physical phenomena. In optical applications, the concepts of sequential and non-sequential raytrace are commonly used is optical design and analysis software. A broader Generalized Raytrace technique will be described as well as how it is used to solve imaging and non-imaging optical analysis tasks. This technique performs the typical reflection and refraction calculation that occur due to surface interactions and includes physical models to simulate surface and bulk scattering, polarization and birefringence and permits analysis on arbitrarily complex geometric systems.