The lines should be drawn in 3D.
= = =
I want to draw three lines:
If I click with the left mousebutton, the first line would be drawn from P(0/0) to the acutal mouseposition and if I click again then the second one would be drawn, too. The z-value from the both lines is 0.
And now if I click a special button, I want to create a third line from the end of the first line to the end of the second line. This works fine if the z-values are 0.
BUT:
I'm possible to turn the two lines around the y-axis with the center at P(0/0).
So the z-values aren't 0.
And afterthat I want to create the third line and then it's wrong!
|