Click or drag to resize
AB4D logo

BaseCameraGetMousePositionOnPlane Method

GetMousePositionOnPlane calculates a position where a ray from mouse position intersects a plane. Returns false if there is no intersection.

Namespace:  Ab3d.Cameras
Assembly:  Ab3d.PowerToys (in Ab3d.PowerToys.dll) Version: 10.1.8147.1045
Syntax
C#
public bool GetMousePositionOnPlane(
	Point mousePosition,
	Point3D pointOnPlane,
	Vector3D planeNormal,
	out Point3D intersectionPoint
)

Parameters

mousePosition
Type: System.WindowsPoint
mouse position
pointOnPlane
Type: System.Windows.Media.Media3DPoint3D
Point3D that lies on the plane
planeNormal
Type: System.Windows.Media.Media3DVector3D
normal vector (perpendicular to the plane) that defines the orientation of the plane
intersectionPoint
Type: System.Windows.Media.Media3DPoint3D
returned intersection position

Return Value

Type: Boolean
Returns false if there is no intersection
See Also