1RealT
ww = 1.0 - rr - ss;
3basis[0] = 0.5 *
ww * (2.0 *
ww - 2.0 - tt) * (1.0 - tt);
4basis[1] = 0.5 * rr * (2.0 * rr - 2.0 - tt) * (1.0 - tt);
5basis[2] = 0.5 * ss * (2.0 * ss - 2.0 - tt) * (1.0 - tt);
6basis[3] = 0.5 *
ww * (2.0 *
ww - 2.0 + tt) * (1.0 + tt);
7basis[4] = 0.5 * rr * (2.0 * rr - 2.0 + tt) * (1.0 + tt);
8basis[5] = 0.5 * ss * (2.0 * ss - 2.0 + tt) * (1.0 + tt);
10basis[6] = 2.0 *
ww * rr * (1.0 - tt);
11basis[7] = 2.0 * rr * ss * (1.0 - tt);
12basis[8] = 2.0 * ss *
ww * (1.0 - tt);
14basis[10] = rr * (1.0 - tt * tt);
15basis[11] = ss * (1.0 - tt * tt);
16basis[12] = 2.0 *
ww * rr * (1.0 + tt);
17basis[13] = 2.0 * rr * ss * (1.0 + tt);
18basis[14] = 2.0 * ss *
ww * (1.0 + tt);