Skip to content
Snippets Groups Projects
Unverified Commit 555cb8cb authored by Philipp Hanslovsky's avatar Philipp Hanslovsky
Browse files

Add docstring

parent 15778000
Branches
Tags
No related merge requests found
......@@ -49,6 +49,13 @@ public enum Interpolation
return name;
}
/**
*
* @return The next {@link Interpolation} value in the order defined by
* {@link Interpolation#values()} with cyclic continuation: The last element
* returns the first element. Can be used to toggle/cycle through interpolations
* in graphical user interface.
*/
public Interpolation next() {
return Interpolation.values()[ ( this.ordinal() + 1 ) % Interpolation.values().length ];
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment