I was looking at the documentation of intersection class of rhino3dm.js and I was wondering if the lineline() static function is implemented and how it works. Is it like the RhinoCommon version that takes two lines and two doubles (or floats in the case of JS)? What type of object does it return? A boolean?
Seems the documentation leaves a lot to be desired for these methods. Check out the source here. It’s cpp but fairly straightforward to follow. LineLine in its most basic form takes two lines and returns three values: a bool indicating the success of the intersection and two doubles indicating the param on line a and line b.
Thanks! I’m interested in the LineLine2. The return object is an array? The C++ code shows a tuple but I was under the impression that these aren’t yet supported on JS.
Sorry for bumping this old thread but rhino.Intersection.lineLine( lineA, lineB, tolerance, finiteSegments) has stopped working as it used to. Was this method deprecated in rhino8 version? I’m getting the following error: