|
DXViewportViewGetHitPosition Method |
GetHitPosition method returns hit 3D position or null when no object was hit by the specified 2D position.
Namespace: Ab3d.DirectX.ControlsAssembly: Ab3d.DXEngine.Wpf (in Ab3d.DXEngine.Wpf.dll) Version: 7.0.8865.1045
Syntax public Point3D? GetHitPosition(
Point position
)
Parameters
- position Point
- 2D position in Viewport3D that is used to create a 3D ray that is used for hit testing (usually mouse position)
Return Value
NullablePoint3Dhit 3D position or null when no object was hit
See Also