Let the four corners of the quadrilateral have position vectors
,
,
and
. Let it be transformed to a cube
in the
plane. The following transformation
maps the cube to the quadrilateral (Thanks to Josy for giving this
transformation)
This is basically a Lagrange interpolant, ie., the coefficient of each
is equal to one when
and zero at all the
remaining points.
In terms of the coordinates we have
Let
be a function defined on the quadrilateral
and we want
to integrate it on
. We first map it to the cube
where
and
Then the integral is approximated by Gauss quadrature
where
are evaluated at the
gaussian points.