IntersectionLineBox Method (Line, BoundingBox, Double, Interval) |
Intersects an infinite line and an axis aligned bounding box.
Namespace:
Rhino.Geometry.Intersect
Assembly:
RhinoCommon (in RhinoCommon.dll)
Syntaxpublic static bool LineBox(
Line line,
BoundingBox box,
double tolerance,
out Interval lineParameters
)
Public Shared Function LineBox (
line As Line,
box As BoundingBox,
tolerance As Double,
<OutAttribute> ByRef lineParameters As Interval
) As Boolean
Parameters
- line
- Type: Rhino.GeometryLine
Line for intersection. - box
- Type: Rhino.GeometryBoundingBox
BoundingBox to intersect. - tolerance
- Type: SystemDouble
If tolerance > 0.0, then the intersection is performed against a box
that has each side moved out by tolerance.
- lineParameters
- Type: Rhino.GeometryInterval
The chord from line.PointAt(lineParameters.T0) to line.PointAt(lineParameters.T1) is the intersection.
Return Value
Type:
Booleantrue if the line intersects the box, false if no intersection occurs.
Version InformationRhino for Mac
Supported in: 5.4
Rhino for Windows
Supported in: 6.8
See Also