Triang lattice generation fixes; now finally working
Former-commit-id: 27a609231d8a262ebbf93e68f400c664480f5f06
This commit is contained in:
parent
d9285c28dc
commit
883926daac
|
@ -16,6 +16,7 @@ static inline point2d point2d_fromxy(const double x, const double y) {
|
|||
point2d p;
|
||||
p.x = x;
|
||||
p.y = y;
|
||||
return p;
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -40,6 +41,7 @@ typedef struct {
|
|||
|
||||
// returns a copy but scaled by a factor
|
||||
points2d_rordered_t *points2d_rordered_scale(const points2d_rordered_t *orig, double factor);
|
||||
|
||||
void points2d_rordered_free(points2d_rordered_t *); // use only for result of points2d_rordered_scale
|
||||
|
||||
static inline point2d points2d_rordered_get_point(const points2d_rordered_t *ps, int r_order, int i) {
|
||||
|
|
|
@ -295,6 +295,7 @@ static void trilatgen_sort_pointlist(triangular_lattice_gen_t *g) {
|
|||
triangular_lattice_gen_t * triangular_lattice_gen_init(double a, TriangularLatticeOrientation ori, bool include_origin)
|
||||
{
|
||||
triangular_lattice_gen_t *g = malloc(sizeof(triangular_lattice_gen_t));
|
||||
g->a = a;
|
||||
g->orientation = ori;
|
||||
g->includes_origin = include_origin;
|
||||
g->ps.nrs = 0;
|
||||
|
|
Loading…
Reference in New Issue