M_Rhino_Geometry_Intersect_Intersection_LineBox_1 - mcneel/rhinocommon-api-docs GitHub Wiki

Intersection.LineBox Method (Line, Box, Double, Interval)

Intersects an infinite line with a box volume.

Namespace: Rhino.Geometry.Intersect
Assembly: RhinoCommon (in RhinoCommon.dll) Version: Rhino 6.0

Syntax

C#

public static bool LineBox(
	Line line,
	Box box,
	double tolerance,
	out Interval lineParameters
)

VB

Public Shared Function LineBox ( 
	line As Line,
	box As Box,
	tolerance As Double,
	<OutAttribute> ByRef lineParameters As Interval
) As Boolean

Parameters

 

line
Type: Rhino.Geometry.Line
Line for intersection.
box
Type: Rhino.Geometry.Box
Box to intersect.
tolerance
Type: System.Double
If tolerance > 0.0, then the intersection is performed against a box that has each side moved out by tolerance.
lineParameters
Type: Rhino.Geometry.Interval
The chord from line.PointAt(lineParameters.T0) to line.PointAt(lineParameters.T1) is the intersection.

Return Value

Type: Boolean
true if the line intersects the box, false if no intersection occurs.

Version Information

Supported in: 6.0.16224.21491, 5D58w

See Also

Reference

Intersection Class
LineBox Overload
Rhino.Geometry.Intersect Namespace

⚠️ **GitHub.com Fallback** ⚠️