pyleecan.Functions.Geometry.inter_line_line module

inter_line_line(Z1, Z2, Z3, Z4)[source]

INTER_LINE_LINE find the intersection between two lines defined by two complex

Parameters:
  • Z1 (complex) – Complex coordinate of a point on the first line

  • Z2 (complex) – Complex coordinate of another point on the first line

  • Z3 (complex) – Complex coordinate of a point on the second line

  • Z4 (complex) – Complex coordinate of another point on the second line

Returns:

Zlist – List of the complex coordinates of the intersection return [Z1, Z2] if the 4 points are aligned

Return type:

list

find_line_eq(Z1, Z2)[source]

Find the line equation (Ax+By=C)

Parameters:
  • Z1 (complex) – Complex coordinate of a point on the line

  • Z2 (complex) – Complex coordinate of another point on the line

Returns:

A, B, C – Line equation parameters

Return type:

(float, float, float)