extending Ray functionality

Added a help function to allow creating ray from two points in space.
The funcstion calculates the direction vector and length scalar.
A length parameter was added to the Ray class to allow limiting
intersections of ray with a predefined length. Default length is
Number.Max_VALUE, so it shouldn't disturb and raytracing made by a mouse
projection.