Assuming you are using THE ray-casting engine... The ray-casting library includes complete documentation for use within the library's file. Just load it up and read all the comments.