/*! * \brief Creates a new point in a polygon. */ PointType * CreateNewPointInPolygon (PolygonType *Polygon, Coord X, Coord Y) { PointType *point = GetPointMemoryInPolygon (Polygon); /* copy values */ point->X = X; point->Y = Y; point->ID = ID++; return (point); }
/* --------------------------------------------------------------------------- * creates a new point in a polygon */ PointTypePtr CreateNewPointInPolygon (PolygonTypePtr Polygon, LocationType X, LocationType Y) { PointTypePtr point = GetPointMemoryInPolygon (Polygon); /* copy values */ point->X = X; point->Y = Y; point->ID = ID++; return (point); }