How do I go about defining this area without using a piecewise function?
I think it has something to do with Bilinear Surfaces but I'm not sure how to get started.
Computer Graphics Stack Exchange is a question and answer site for computer graphics researchers and programmers. It only takes a minute to sign up.
Sign up to join this communityHow do I go about defining this area without using a piecewise function?
I think it has something to do with Bilinear Surfaces but I'm not sure how to get started.
One solution is bilinear mapping, which works for every convex quadrilateral.
Let $A, B, C, D$ be the vertices of a quadrilateral $Q$ in the plane, in this order.
Then $f(u,v)=(1-u)(1-v)A + u(1-v)B + uvC + (1-u)vD$ maps the square $[0,1] \times [0,1]$ to $Q$.