Click or drag to resize

IntersectionLineCylinder Method

Intersects a line with a cylinder using exact calculations.

Namespace:  Rhino.Geometry.Intersect
Assembly:  RhinoCommon (in RhinoCommon.dll)
Syntax
public static LineCylinderIntersection LineCylinder(
	Line line,
	Cylinder cylinder,
	out Point3d intersectionPoint1,
	out Point3d intersectionPoint2
)

Parameters

line
Type: Rhino.GeometryLine
Line for intersection.
cylinder
Type: Rhino.GeometryCylinder
Cylinder for intersection.
intersectionPoint1
Type: Rhino.GeometryPoint3d
First intersection point.
intersectionPoint2
Type: Rhino.GeometryPoint3d
Second intersection point.

Return Value

Type: LineCylinderIntersection
If None is returned, the first point is the point on the line closest to the cylinder and the second point is the point on the cylinder closest to the line.

If Single is returned, the first point is the point on the line and the second point is the same point on the cylinder.

Version Information

Rhino for Mac

Supported in: 5.4

Rhino for Windows

Supported in: 6.5
See Also