MapUtil.GetLowerBorder C# (CSharp) Méthode

GetLowerBorder() public static méthode

public static GetLowerBorder ( float y ) : int
y float
Résultat int
    public static int GetLowerBorder(float y)
    {
        return Mathf.FloorToInt (y);
    }

Usage Example

Exemple #1
0
    private ICollection <Vec2> GetPotentialTiles(Vec2 point, Vector2 normal)
    {
        List <Vec2> tiles = new List <Vec2> ();

        for (int i = 1; i <= extra; i++)
        {
            Vector2 newPoint = new Vector2(point.x, point.y) + normal * i;
            tiles.Add(new Vec2(MapUtil.GetLeftBorder(newPoint.x), MapUtil.GetLowerBorder(newPoint.y)));
        }

        return(tiles);
    }
All Usage Examples Of MapUtil::GetLowerBorder