Skip to main content

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.

Constructors​

MemberWhat it is
NearestInfo(int size)Creates a ForestGenerator.NearestInfo from size.

Fields​

MemberWhat it is
float[] nearestDistanceDistance from the point to each nearest edge.
Edge[] nearestEdgeThe nearest path edges, closest first probably.
float[] nearestProgressesHow 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: