Gets the intersection (if existing) of a line defined by a point and a vector with the specified AABB box.

Namespace: Ico.Windows.Media.Media3D
Assembly: Ico3DControlsLibrary (in Ico3DControlsLibrary.dll) Version: 10.97.212.0 (10.97.212.00)

Syntax

C#
public static Nullable<Point3D> GetLineAABBIntersection(
	Point3D linePoint,
	Vector3D lineDirection,
	LineType lineType,
	Rect3D box
)
Visual Basic
Public Shared Function GetLineAABBIntersection ( _
	linePoint As Point3D, _
	lineDirection As Vector3D, _
	lineType As LineType, _
	box As Rect3D _
) As Nullable(Of Point3D)
JScript
public static function GetLineAABBIntersection(
	linePoint : Point3D, 
	lineDirection : Vector3D, 
	lineType : LineType, 
	box : Rect3D
) : Nullable<Point3D>

Parameters

linePoint
Type: System.Windows.Media.Media3D..::..Point3D
A Point3D defining the line. If the line is a ray or segment this point must be the origin point.
lineDirection
Type: System.Windows.Media.Media3D..::..Vector3D
A Vector3D giving the orientation of the line. If the line is a segment then the length of this vector must be the length of the segment.
lineType
Type: LineType
The LineType.
box
Type: System.Windows.Media.Media3D..::..Rect3D
The Rect3D representing the bounding box.

Return Value

A valid Point3D if intersection exists,

Field Value

null otherwise.

See Also