Click or drag to resize

HitTestPointDataIsRectangleHitByRay Method

Determines whether the specified 3D-rectangle r is hit by a ray given by the provided transformation matrix that would transform the hit ray in a ray at x=0, y=0, and z=-Infinity .. +Infinity.

Namespace: Altaxo.Graph.Graph3D
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public static bool IsRectangleHitByRay(
	RectangleD3D r,
	Matrix4x4 rayTransformation,
	out double z
)

Parameters

r  RectangleD3D
The rectangle r.
rayTransformation  Matrix4x4
The hit ray transformation.
z  Double
If there was a hit, this is the z coordinate of the hit (otherwise, NaN is returned).

Return Value

Boolean
True if the rectangle is hit by a ray given by the provided hit ray matrix.
See Also