Constructor for the OdGeRay2d class.
The constructor constructs a ray that is casted from the specified point, the ray passes through the point2.