Click or drag to resize

OrthographicCameraGetHitRayMatrix Method

Gets a matrix for a hit point on the screen. The hit point is given in relative screen coordinates (X and Y component, 0..1). The screen's aspect ratio is given in the Z component. The result is a matrix which transforms world coordinates in that way that the hit ray in world coordinates is transformed to x=0 and y=0 and z being the distance to the camera.

Namespace: Altaxo.Graph.Graph3D.Camera
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public override Matrix4x4 GetHitRayMatrix(
	PointD3D relativeScreenPosition
)

Parameters

relativeScreenPosition  PointD3D
The relative screen position (X and Y component), as well as the screen's aspect ratio (Z component).

Return Value

Matrix4x4
Matrix which transforms world coordinates in that way that the hit ray in world coordinates is transformed to x=0 and y=0 and z being the distance to the camera.
See Also