package mightypork.utils.math.constraints; import mightypork.gamecore.control.timing.Pollable; /** *
* Interface for constraints that support digests. Digest is a small data object * with final fields, typically primitive, used for procesing (such as rendering * or other very frequent operations). *
** Taking a digest is expensive, so if it needs to be done often and the value * changes are deterministic (such as, triggered by timing event or screen * resize), it's useful to cache the last digest and reuse it until such an * event occurs again. *
* * @author MightyPork * @param* Toggle digest caching. *
*
* To trigger update of the cache, call the poll()
method.
*