I'm trying to get a percentage value of x position from center to radius border.

I created this picture to kind of illustrate what I mean better.

[![enter image description here][1]][1]

I wrote this function which gets the percentage, but how do I also include the center offset?

    private float GetPercentage(Vector2 point, float radiusOffset, float centerOffset)
    {
        float radius = Math.Min(radius.rect.width / 2f, radius.rect.height / 2f);

        radius *= radiusOffset;

        return 1f - (Math.Max(Math.Abs(point.x), Math.Abs(point.y)) / radius);
    }

The radius offset is from 0-1, 0 being the 0,0 and 1 full radius. The center offset is from 1-0, 1 being the 0,0 and 0 being the radius border.

  [1]: https://i.sstatic.net/veLXK.png