PointEdge
A struct in Root.Township, Alta.Forests.
A 2D point in forest generation with its nearest path edge, worked out lazily and cached.
- Listed in World generation
- Derived types
SpawnModifierPoint
Fields
| Member | What it is |
|---|---|
float edgeDistance | Cached distance to the nearest edge. |
float edgeProgress | Cached progress along the nearest edge. |
Edge nearestEdge | Cached nearest edge. Null until worked out. |
Vector2 point | The point, as world x and z. |
Methods
| Member | What it is |
|---|---|
static void EvaluateEdge(ForestGeneration forest, Vector2 point, out Edge nearestEdge, out float distance, out float progress) | Finds the nearest path edge, the distance to it and progress along it. Distance is 0 if the point is in open space. |
Edge GetEdge(ForestGeneration forest) | The nearest edge, working it out on first use. |
float GetEdgeDistance(ForestGeneration forest) | Distance to the nearest edge, working it out on first use. |
Used in
Members of other types that take, return or hold a PointEdge:
CliffFill.RaycastRequest.pointEdge, ForestFillCore.Raycasts, PointNormal.PointNormal, SpawnModifiers.Process, DistanceFilter.EvaluateDistance, DistanceFilter.Filter, DistanceToEdgeFilter.EvaluateDistance, DistanceToPathFilter.EvaluateDistance, DistanceToRiverFilter.EvaluateDistance, EdgeCutFilter.Filter, RandomCutFilter.Filter, RandomOffsetFilter.Filter, SimpleNoiseFilter.Filter, SpaceFilter.Filter, SpawnModifierPointRedirect.Filter.