Ejemplo n.º 1
0
    public static UIBoundary boundaryFromPoint(Vector2 point, float maxDistance)
    {
        UIBoundary boundary = new UIBoundary();

        boundary.minX = point.x - maxDistance;
        boundary.maxX = point.x + maxDistance;
        boundary.minY = point.y - maxDistance;
        boundary.maxY = point.y + maxDistance;

        return(boundary);
    }
Ejemplo n.º 2
0
    public static UIBoundary boundaryFromPoint( Vector2 point, float maxDistance )
    {
        UIBoundary boundary = new UIBoundary();

        boundary.minX = point.x - maxDistance;
        boundary.maxX = point.x + maxDistance;
        boundary.minY = point.y - maxDistance;
        boundary.maxY = point.y + maxDistance;

        return boundary;
    }