Geometric Functions#
This module provides utility functions for geometric computations, including line equations, line segments, intersections, angle computations, and related geometric operations.
|
Fonction equation cartesienne |
|
|
|
|
Function to compute distance between a point and a segment |
|
|
Fonction projection orthogonale sur une droite |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Parameters p1, p2, p3 : [x, y] |
|
Compute angle between three points (the angle is calculated for the middle point). |
Function to compute distance between a point and a segment#
- util.geometry.distance_to_segment(x0, y0, x1, y1, x2, y2)[source]#
Function to compute distance between a point and a segment
- Parameters:
x0 (
float) – point coordinate Xy0 (
float) – point coordinate Yx1 (
float) – segment first point Xy1 (
float) – segment first point Yx2 (
float) – segment second point Xy2 (
float) – segment second point Y
- Return type:
float- Returns:
Distance between point and projection coordinates