libgeda
|
Low-level mathmatical functions for boxes. 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_box_shortest_distance (BOX *box, int x, int y, int solid) |
Calculates the distance between the given point and the closest point on the perimeter or interior of the box. |
Definition in file m_box.c.
double m_box_shortest_distance | ( | BOX * | box, |
int | x, | ||
int | y, | ||
int | solid | ||
) |
[in] | box | The box. |
[in] | x | The x coordinate of the given point. |
[in] | y | The y coordinate of the given point. |
[in] | solid | TRUE if the box should be treated as solid, FALSE if the box should be treated as hollow. |