Suppose $D\subset[0,1]\times[0,1]$ is a plane convex domain, define two function on $[0,1]$ related to $D$ as $$ h(x) = \text{length of line segment } D \cap \{ (x,y) | 0\leq y\leq 1 \} $$ $$ w(y) = \text{length of line segment } D \cap \{ (x,y) | 0\leq x\leq 1 \} $$
If the convex domain $D$ is given, for example $$ D = \{ (x,y) | a\leq x\leq b, f(x) \leq y \leq g(x) \} $$ then one can get the expression of $h(x)$ and $w(y)$.
My questions are
- Is different convex domain $D$ result to different function pair $h(x)$ and $w(y)$?
- If the answer of question 1 is true , how to figure out an expression of $D$ from the related function pair $h(x)$ and $w(y)$.