Ejemplo n.º 1
0
        static public void DrawPlanarGrid(Vector2 minimum, Vector2 maximum, Vector2 cell_size)
        {
            Floats.Range(minimum.y, maximum.y, cell_size.y, true)
            .Process(y => Gizmos.DrawLine(minimum.GetWithY(y), maximum.GetWithY(y)));

            Floats.Range(minimum.x, maximum.x, cell_size.x, true)
            .Process(x => Gizmos.DrawLine(minimum.GetWithX(x), maximum.GetWithX(x)));
        }
Ejemplo n.º 2
0
        static public void DrawArearGrid(Vector2 minimum, Vector2 maximum, Vector2 cell_size, float y = 0.0f)
        {
            Vector3 minimum3 = minimum.GetArear(y);
            Vector3 maximum3 = maximum.GetArear(y);

            Floats.Range(minimum.y, maximum.y, cell_size.y, true)
            .Process(z => Gizmos.DrawLine(minimum3.GetWithZ(z), maximum3.GetWithZ(z)));

            Floats.Range(minimum.x, maximum.x, cell_size.x, true)
            .Process(x => Gizmos.DrawLine(minimum3.GetWithX(x), maximum3.GetWithX(x)));
        }