module documentation

Undocumented

Function calculate_barycenter Return barycenter of a list of points
Function euclidean_3d_dist Return euclidean 3d distance between 2 points :param p1: Point of the first point's coordinates :param p2: Point of the second point's coordinates :return: distance in the same metrics as the points
Function euclidean_dist Return euclidean distance between 2 points :param x1: x position of the first point :param y1: y position of the first point :param x2: x position of the second point :param y2: y position of the second point :return: distance in the same metrics as the points...
Function euclidean_dist_2_pts Return euclidean distance between 2 points :param p1: tuple(X,Y) of the first point's coordinates :param p2: tuple(X,Y) of the second point's coordinates :return: distance in the same metrics as the points...
Function get_angle_2_points angle of the line starting at (x1,y1) and finishing at (x2,y2), according to repere trigonometrique :param x1: x position of the first point :param y1: y position of the first point :param x2: x position of the second point :param y2: y position of the second point :return: angle in radians...
def calculate_barycenter(list_points):

Return barycenter of a list of points

Parameters
list_pointslist of Point
def euclidean_3d_dist(p1, p2):

Return euclidean 3d distance between 2 points :param p1: Point of the first point's coordinates :param p2: Point of the second point's coordinates :return: distance in the same metrics as the points

def euclidean_dist(x1, y1, x2, y2):

Return euclidean distance between 2 points :param x1: x position of the first point :param y1: y position of the first point :param x2: x position of the second point :param y2: y position of the second point :return: distance in the same metrics as the points

def euclidean_dist_2_pts(p1, p2):

Return euclidean distance between 2 points :param p1: tuple(X,Y) of the first point's coordinates :param p2: tuple(X,Y) of the second point's coordinates :return: distance in the same metrics as the points

def get_angle_2_points(x1, y1, x2, y2):

angle of the line starting at (x1,y1) and finishing at (x2,y2), according to repere trigonometrique :param x1: x position of the first point :param y1: y position of the first point :param x2: x position of the second point :param y2: y position of the second point :return: angle in radians