Figure 5: Lattice used in the code sample. Given only the anchor points, cord lengths, spring constants, and resting lengths, the example program solves for the rest of the information.