Click or drag to resize
Ab4d.SharpEngine logo

SceneViewLine3DTo2D Method

Overload List
 NameDescription
Public methodLine3DTo2D(Vector3, Vector3, Boolean) Converts a 3D line that is defined by startPositionWorld and endPositionWorld to a line on the screen that is defined by startPositionScreen and endPositionScreen. This method correctly handles the case when the 3D line crosses the camera near plane (goes behind the camera). In this case the line needs to be cropped at the camera's near plane.
Public methodStatic memberLine3DTo2D(Vector3, Vector3, Camera, Single, Single) Converts a 3D line that is defined by startPositionWorld and endPositionWorld to a line on the screen that is defined by startPositionScreen and endPositionScreen. This method correctly handles the case when the 3D line crosses the camera near plane (goes behind the camera). In this case the line needs to be cropped at the camera's near plane.
Top
See Also