Class Proximity
public static class Proximity
- Inheritance
-
Proximity
- Inherited Members
Methods
LineLineProximity(Point3d, Point3d, Point3d, Point3d)
Find the closest position between two infinite lines. Closest point on line 1 will thus be at
var cp1 = start1 + (t1 * (end1 - start1))
public static (double t1, double t2) LineLineProximity(Point3d start1, Point3d end1, Point3d start2, Point3d end2)
Parameters
start1Point3dFirst reference point for infinite line 1
end1Point3dSecond reference point for infinite line 1
start2Point3dFirst reference point for infinite line 2
end2Point3dSecond reference point for infinite line 2
Returns
LineLineProximity(Point3d, Vector3d, Point3d, Vector3d)
Find the closest position between two infinite lines. Closest point on line 1 will thus be at
var cp1 = p1 + (t1 * v1)
public static (double t1, double t2) LineLineProximity(Point3d p1, Vector3d v1, Point3d p2, Vector3d v2)
Parameters
p1Point3dReference point on line 1
v1Vector3dDirection of line 1
p2Point3dReference point on line 2
v2Vector3dDirection of line 2