libgeda
|
Low-level mathmatical functions for circles. More...
#include <config.h>
#include <math.h>
#include <stdio.h>
#include "libgeda_priv.h"
Go to the source code of this file.
Functions | |
double | m_circle_shortest_distance (CIRCLE *circle, int x, int y, int solid) |
Calculates the distance between the given point and the closest point on the perimeter or interior of the circle. |
Definition in file m_circle.c.
double m_circle_shortest_distance | ( | CIRCLE * | circle, |
int | x, | ||
int | y, | ||
int | solid | ||
) |
[in] | circle | The circle. |
[in] | x | The x coordinate of the given point. |
[in] | y | The y coordinate of the given point. |
[in] | solid | TRUE if the circle should be treated as solid, FALSE if the circle should be treated as hollow. |
Definition at line 49 of file m_circle.c.