Arma Reforger Script API
Loading...
Searching...
No Matches
SCR_ForestGeneratorOutlinePositionChecker Interface Reference

Public Member Functions

bool IsPosDistanceEqualOrCloserThan (vector pos, float distance)
 
bool IsPosWithinSetDistance (vector pos)
 
void SCR_ForestGeneratorOutlinePositionChecker (notnull array< float > oldPoints, notnull array< float > newPoints, float setDistance)
 

Static Protected Member Functions

static array< float > GetOutlineDiffLines (notnull array< float > oldPoints, notnull array< float > newPoints)
 
static array< float > GetOutlineDiffLines_PointsRemoved (notnull array< float > oldPoints, notnull array< float > newPoints)
 
static array< float > GetOutlineDiffLines_PointsMoved (notnull array< float > oldPoints, notnull array< float > newPoints)
 
static array< float > GetOutlineDiffLines_PointAdded (notnull array< float > oldPoints, notnull array< float > newPoints)
 

Protected Attributes

ref array< ref array< vector > > m_aOutlineSegments = {}
 
float m_fSetDistanceSq
 

Constructor & Destructor Documentation

◆ SCR_ForestGeneratorOutlinePositionChecker()

void SCR_ForestGeneratorOutlinePositionChecker.SCR_ForestGeneratorOutlinePositionChecker ( notnull array< float > oldPoints,
notnull array< float > newPoints,
float setDistance )
Parameters
[in]oldPoints
[in]newPoints
[in]setDistance

Member Function Documentation

◆ 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]posthe position to check
[in]distancethe checked distance
Returns
true if provided pos is <= distance from diff outline, false otherwise

◆ IsPosWithinSetDistance()

bool SCR_ForestGeneratorOutlinePositionChecker.IsPosWithinSetDistance ( vector pos)
Parameters
[in]posthe position to check
Returns
true if provided pos is <= distance from diff outline, false otherwise

Member Data Documentation

◆ 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: