I am looking for the most optimum way for the following: I need to draw a line in the Viewport in such a way that X coordinate (for both ends of the line) would be always constant and referring to the value defined by screen coordinates.
Y coordinate(for both points) should vary depending on the input 3D point.
I was thinking to use next routine:
- Convert 3D World point to 2D Screen point
- Modify X value of this screen point, keep Y coordinate
- Convert modified point to 3D point in order to be used in Display.DrawLine()
Is it correct way maybe smth easier exists? Am i missing smth?