OpenLayer Offline Manual

OpenLayer | Shape | Line | GetIntersectionPoint GetIntersectionPoint
Vec2D GetIntersectionPoint( | const Line &other )
Returns the intersection point between this line and an another one. The intersection point may not fall inside the line segments. Use the Collides-function to test if the line segments collide. Examples Line myLine( ... ); Line otherLine( ... ); // Get the intersection point of the two lines // Vec2D point = myLine.GetIntersectionPoint( otherLine ); 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 GetIntersectionPoint? Click here.