6

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.

Graph showing an area composed of a square region adjoining a triangular region

Gavin
  • 161
  • 2

1 Answers1

4

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$.

enter image description here enter image description here

ratchet freak
  • 5,950
  • 16
  • 28
lhf
  • 724
  • 5
  • 9