Engines/FlatRedBallXNA/FlatRedBall/AI/LineOfSight/VisibilityGrid.cs
/// <summary>
/// Reveals a circle around the given world coordinate using a given radius
/// </summary>
/// <param name="worldX">The world coordinate X</param>
/// <param name="worldY">The world coordinate Y</param>
/// <param name="worldRadius">The radius in world units</param>
Reveals a circle around the given world coordinate using a given radius
Reveals a circle around the given world coordinate using a given radius
public void RevealCircleWorld(float worldX, float worldY, float worldRadius)
        {
            int xIndex;
            int yIndex;
            WorldToIndex(worldX, worldY, out xIndex, out yIndex);
            int tileRadius = MathFunctions.RoundToInt(worldRadius / mGridSpacing);
            RevealCircle(xIndex, yIndex, tileRadius);
        }
public void RevealCircleWorld ( float worldX , float worldY , float worldRadius ) { int xIndex ; int yIndex ; WorldToIndex ( worldX , worldY , out xIndex , out yIndex ) ; int tileRadius = MathFunctions . RoundToInt ( worldRadius / mGridSpacing ) ; RevealCircle ( xIndex , yIndex , tileRadius ) ; }
Reveals a circle around the given world coordinate using a given radius
Reveals a circle around the given world coordinate using a given radius
worldX
float
The world coordinate X
The world coordinate X
worldY
float
The world coordinate Y
The world coordinate Y
worldRadius
float
The radius in world units
The radius in world units