1. A computer-implemented method of detecting a waving motion in a sequence of ordered points, the method comprising: receiving a sequence of ordered points; selecting a subset of the sequence of ordered points; determining if the subset defines a waving motion; and storing an indication of whether or not the subset defines a waving motion.