mathlab.geometry
¶
Collection of geometry tutorials
Functions:
point_line (xa, ya, xb, yb, xp, yp) |
Given a line r passing through two points A and B and assigned a point P, this function determines the projection of P on the line, evaluates its distance from the line and it indicates whether the projection is internal to the segment AB. |
gravity_center (points) |
To do: complete documentation |
electric_dipole (charge_location) |
To do: complete documentation |
-
mathlab.geometry.
point_line
(xa, ya, xb, yb, xp, yp)[source]¶ Given a line r passing through two points A and B and assigned a point P, this function determines the projection of P on the line, evaluates its distance from the line and it indicates whether the projection is internal to the segment AB.
Parameters: xa, ya, xb, yb, xp, yp (float) – Coordinate (X, Y) of A, B and P. Returns: distance – Distance between P and the line