Added a translate function to the nx_ray2-object.
Added a extends-function to the nx_ray2-object.