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: 11.0.8746.1045
Syntax
C#
public bool GetMousePositionOnPlane(
	Point mousePosition,
	Point3D pointOnPlane,
	Vector3D planeNormal,
	out Point3D intersectionPoint
)

Parameters

mousePosition  Point
mouse position
pointOnPlane  Point3D
Point3D that lies on the plane
planeNormal  Vector3D
normal vector (perpendicular to the plane) that defines the orientation of the plane
intersectionPoint  Point3D
returned intersection position

Return Value

Boolean
Returns false if there is no intersection
See Also