DistanceCalculations

This file provides methods for distance calculations

Methods

gmshModel.Geometry.DistanceCalculations.distanceLineLine(A1, B1, A2, B2, finiteLine=True)[source]

Calculate the distance between two lines each defined by points A_i and B_i. If A_i and B_i are the starting and end points of the lines, i.e., the lines are finite, set finiteLine flag to True

gmshModel.Geometry.DistanceCalculations.distancePointLine(P, A, B, finiteLine=True)[source]

Calculate the distance between a point P and a line defined by points A and B. If A and B are the starting and ending points of the line, i.e., the line is finite, set finiteLine flag to True.

gmshModel.Geometry.DistanceCalculations.distancePointPoint(P1, P2)[source]

Calculate the distance between to points P1 and P2