Wave optics and ray tracing library