-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnullspace_finders.h
68 lines (62 loc) · 2.25 KB
/
nullspace_finders.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#ifndef NULLSPACE_FINDERS_H_
#define NULLSPACE_FINDERS_H_
#include <stdint.h>
#include "finders.h"
/* Returns the minum radius enclosing 4 features.
*
* feat parameters are the positions of each feature. (in blocks) These
* parameters do not need to be in any particular order.
*
* ax, ay, az are the dimensions of the box around each feature that must
* fit inside the radius
*
* max is the maximum radius to start searching from.
*
* Based off of getEnclosingRadius from cubiomes.
*/
float getMinRadius4(Pos p0, Pos p1, Pos p2, Pos p3,
int ax, int ay, int az, int max);
/* Returns the minum radius enclosing 3 features.
*
* feat parameters are the positions of each feature. (in blocks) These
* parameters do not need to be in any particular order.
*
* ax, ay, az are the dimensions of the box around each feature that must
* fit inside the radius
*
* max is the maximum radius to start searching from.
*
* Based off of getEnclosingRadius from cubiomes.
*/
float getMinRadius3(Pos p0, Pos p1, Pos p2,
int ax, int ay, int az, int max);
/* Returns the minum radius enclosing 2 features.
*
* feat parameters are the positions of each feature. (in blocks) These
* parameters do not need to be in any particular order.
*
* ax, ay, az are the dimensions of the box around each feature that must
* fit inside the radius
*
* Based off of getEnclosingRadius from cubiomes.
*/
float getMinRadius2(Pos p0, Pos p1, int ax, int ay, int az);
/* Returns the size of the feature cluster within 4 regions, given the
* chunk position of the feature within each region.
*
* feat parameters represent the block coordinates of a feature. The two
* bits at the end of each parameter name represent the relative x
* coordinate (right bit) and z coordinate (left bit) of that region.
*
* ax, ay, az are the dimensions of the feature.
*
* min is the minimum cluster size to search for.
*
* Double features across regions (01,11) or regions (10,11) are not
* counted by this function, as this function is intended to be used to
* check a large rectangle of regions, and those double features will
* be caught when checking another overlapping set of 4 regions.
*/
int getClusterSize(Pos feat00, Pos feat01, Pos feat10, Pos feat11,
int ax, int ay, int az, int min);
#endif