◆ SCR_ForestGeneratorOutlinePositionChecker()
void SCR_ForestGeneratorOutlinePositionChecker.SCR_ForestGeneratorOutlinePositionChecker |
( |
notnull array< float > | oldPoints, |
|
|
notnull array< float > | newPoints, |
|
|
float | setDistance ) |
- Parameters
-
[in] | oldPoints | |
[in] | newPoints | |
[in] | setDistance | |
◆ GetOutlineDiffLines()
static array< float > SCR_ForestGeneratorOutlinePositionChecker.GetOutlineDiffLines |
( |
notnull array< float > | oldPoints, |
|
|
notnull array< float > | newPoints ) |
|
staticprotected |
- Returns
- two arrays of outline difference "lines" (four floats, x0y0-x1y1) around which the area must be cleared - old and new shape
◆ GetOutlineDiffLines_PointAdded()
static array< float > SCR_ForestGeneratorOutlinePositionChecker.GetOutlineDiffLines_PointAdded |
( |
notnull array< float > | oldPoints, |
|
|
notnull array< float > | newPoints ) |
|
staticprotected |
- Returns
- eight floats representing FOUR points (old-1 to old, old+1 to old, old-1 to new, old+1 to new
◆ GetOutlineDiffLines_PointsMoved()
static array< float > SCR_ForestGeneratorOutlinePositionChecker.GetOutlineDiffLines_PointsMoved |
( |
notnull array< float > | oldPoints, |
|
|
notnull array< float > | newPoints ) |
|
staticprotected |
- Returns
- all p-1→vertice / vertice→p+1 (multiple of 4) for old and new points; cannot return null
◆ GetOutlineDiffLines_PointsRemoved()
static array< float > SCR_ForestGeneratorOutlinePositionChecker.GetOutlineDiffLines_PointsRemoved |
( |
notnull array< float > | oldPoints, |
|
|
notnull array< float > | newPoints ) |
|
staticprotected |
◆ IsPosDistanceEqualOrCloserThan()
bool SCR_ForestGeneratorOutlinePositionChecker.IsPosDistanceEqualOrCloserThan |
( |
vector | pos, |
|
|
float | distance ) |
- Parameters
-
[in] | pos | the position to check |
[in] | distance | the checked distance |
- Returns
- true if provided pos is <= distance from diff outline, false otherwise
◆ IsPosWithinSetDistance()
bool SCR_ForestGeneratorOutlinePositionChecker.IsPosWithinSetDistance |
( |
vector | pos | ) |
|
- Parameters
-
[in] | pos | the position to check |
- Returns
- true if provided pos is <= distance from diff outline, false otherwise
◆ m_aOutlineSegments
ref array<ref array<vector> > SCR_ForestGeneratorOutlinePositionChecker.m_aOutlineSegments = {} |
|
protected |
◆ m_fSetDistanceSq
float SCR_ForestGeneratorOutlinePositionChecker.m_fSetDistanceSq |
|
protected |
The documentation for this interface was generated from the following file:
- Game/Generators/ForestGenerator/SCR_ForestGeneratorOutlinePositionChecker.c