Geometry Expressions


In this example, we create C++ code for the intersection point between two line segments.

First draw the segments, and specify coordinates of their end points.

Picture 1

Now create a point at the intersection and measure its coordinates..

Picture 2

Copy as C++.

Picture 3

And paste into your code editor.

Picture 4