points_distance#

static GeometryOperators.points_distance(p1: list, p2: list) float#

Evaluate the distance between two points expressed as their Cartesian coordinates.

Parameters:
p1List

List of [x1,y1,z1] coordinates for the first point.

p2List

List of [x2,y2,z2] coordinates for the second ppint.

Returns:
float

Distance between the two points in the same unit as the coordinates for the points.

Examples

>>> from ansys.aedt.core.modeler.geometry_operators import GeometryOperators
>>> obj = GeometryOperators()
>>> obj.points_distance(p1=[0, 0, 0], p2=[10, 0, 0])