Click or drag to resize
AB4D logo

DXViewportViewGetHitPosition Method

GetHitPosition method returns hit 3D position or null when no object was hit by the specified 2D position.

Namespace: Ab3d.DirectX.Controls
Assembly: Ab3d.DXEngine.Wpf (in Ab3d.DXEngine.Wpf.dll) Version: 7.0.8865.1045
Syntax
C#
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

NullablePoint3D
hit 3D position or null when no object was hit
See Also