Click or drag to resize
Ab4d.SharpEngine logo

SceneViewGetRayFromNearPlane Method

Overload List
 NameDescription
Public methodGetRayFromNearPlane(Int32, Int32, Boolean, Boolean) Returns a Ray that starts at the camera's near plane and goes into a direction that is calculated from the specified x and y position in screen coordinates. The ray can be used for hit testing from the mouse position defined by x and y (relative to this SceneView object). When the Ray cannot be created (size is zero or camera matrix is not valid), then a Ray with zero Direction is returned (Ray.IsValid would return false).
Public methodGetRayFromNearPlane(Single, Single, Boolean, Boolean) Returns a Ray that starts at the camera's near plane and goes into a direction that is calculated from the specified x and y position in screen coordinates. The ray can be used for hit testing from the mouse position defined by x and y (relative to this SceneView object). When the Ray cannot be created (size is zero or camera matrix is not valid), then a Ray with zero Direction is returned (Ray.IsValid would return false).
Top
See Also