CRaPI - Correct Robust and Perfect API

MathUtility.WithinPlayFieldBoundary Method 

Checks if a position is within the boundaries of the playfield.

public static bool WithinPlayFieldBoundary(
   WorldModel pWm,
   Point2D pPosition
);

Parameters

pWm
The agents world-model
pPosition
The position to check

Return Value

True if the point is within boundaries of the playfield, false otherwise

See Also

MathUtility Class | TeamYaffa.CRaPI.Utility Namespace