Function that constrains a point's position.
typedef ConstraintFunction = Offset Function(Offset position);