previous |  up  | next
 

Closest Point on a Line   

Author:  DigiBen

This tutorials demonstrates how to find the point on a line segment that is closest to another point out in space.  This is used in the sphere and polygon collision tutorial.

Functions Used:  glViewport(), glMatrixMode(), glLoadIdentity(), gluPerspective(), glClear(), gluLookAt(), glBegin(), glEnd(), SwapBuffers(), sqrt()


purchase full version
Access EXE

 
 
 

 

 

 


 C
 C++
 Win32
 Direct3D
 OpenGL
 C#
 Java
 Free Tutorials