Table of Contents

Class Proximity

Namespace
FemDesign.Geometry
Assembly
FemDesign.Core.dll
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

start1 Point3d

First reference point for infinite line 1

end1 Point3d

Second reference point for infinite line 1

start2 Point3d

First reference point for infinite line 2

end2 Point3d

Second reference point for infinite line 2

Returns

(double t1, double t2)

Parameters t1, t2, where the two lines are the closest to each other

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

p1 Point3d

Reference point on line 1

v1 Vector3d

Direction of line 1

p2 Point3d

Reference point on line 2

v2 Vector3d

Direction of line 2

Returns

(double t1, double t2)

Parameters t1, t2, where the two lines are the closest to each other