libgeda

m_bounds.c File Reference

#include <config.h>
#include <libgeda_priv.h>
Include dependency graph for m_bounds.c:

Go to the source code of this file.

Functions

void m_bounds_init (BOUNDS *bounds)
 Initialize a bounds by setting it to empty.
void m_bounds_of_points (BOUNDS *bounds, sPOINT points[], gint count)
 Calculate the bounds of a set of points.

Function Documentation

void m_bounds_init ( BOUNDS bounds)
Parameters:
bounds[in] The bounds to set to empty. This parameter must not be NULL.

Definition at line 28 of file m_bounds.c.

void m_bounds_of_points ( BOUNDS bounds,
sPOINT  points[],
gint  count 
)

For an empty set of points, this function returns an empty bounds.

Parameters:
bounds[out] The bounds of the given set of points. The bounds does not need to be initialized before calling this function, but this parameter must not be NULL.
points[in] The given set of points. If the count is greater than zero, this parameter must not be NULL.
count[in] The number of points in the set.

Definition at line 47 of file m_bounds.c.

Here is the call graph for this function:

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines