title: Intersection of line with cube and knowing the point of intersection
body: <p>description </p>
  
  <ol>
  <li>lines are originating from origin(0,0,0).</li>
  <li>lines are at some random angle to the Normal of Top face of the cube.</li>
  <li>if the lines are intersecting cube, calculate the intersection point.</li>
  <li>mainly I want to know how much distance the line traveled inside the cube.</li>
  </ol>
  
  <p>I don't know exactly which approach I should take, I would be pleased and thankful if someone could guide me to the right direction, to use OpenGL, DirectX or some other library, for C#.
  Some example or sample will be appreciated.</p>