|
DXViewportView.GetHitPosition 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.1.9105.2048
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
Nullable<Point3D>hit 3D position or null when no object was hit
See Also