ForestGenerator.NearestInfo
A struct in Root.Township, Alta.Forests.
Scratch arrays for forest generation: the nearest path edges to a point, with distance and progress along each. Pooled by ForestGenerator.
- Listed in World generation
- Nested in
ForestGenerator
Constructors
| Member | What it is |
|---|---|
NearestInfo(int size) | Creates a ForestGenerator.NearestInfo from size. |
Fields
| Member | What it is |
|---|---|
float[] nearestDistance | Distance from the point to each nearest edge. |
Edge[] nearestEdge | The nearest path edges, closest first probably. |
float[] nearestProgresses | How far along each edge the closest point lies; used to work out target height. |
Used in
Members of other types that take, return or hold a NearestInfo: