OpenLayer Offline Manual

OpenLayer | Shape | Line | Collides Collides
bool Collides( | const Line &other )
Returns true if the two line segments collide. Examples Line myLine( ... ); Line otherLine( ... ); // Test if the two line segments collide // if( myLine.Collides( otherLine )) { allegro_message( "Collision!" ); } Other functions of the class Line
Draw | Draws the line to the screen filled with a color
GetIntersectionPoint | Returns the intersection point between two lines
Collides | Tests if the two line segments collide
GetNormal | Returns the normal of the line
Back to the main page of the manual Questions about Collides? Click here.