You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
478 B
35 lines
478 B
package mightypork.utils.math.constraints;
|
|
|
|
|
|
/**
|
|
* Numeric constraint
|
|
*
|
|
* @author MightyPork
|
|
*/
|
|
public interface NumberConstraint {
|
|
|
|
public static final NumberConstraint ZERO = new NumberConstraint() {
|
|
|
|
@Override
|
|
public double getValue()
|
|
{
|
|
return 0;
|
|
}
|
|
};
|
|
|
|
public static final NumberConstraint ONE = new NumberConstraint() {
|
|
|
|
@Override
|
|
public double getValue()
|
|
{
|
|
return 0;
|
|
}
|
|
};
|
|
|
|
|
|
/**
|
|
* @return current value
|
|
*/
|
|
double getValue();
|
|
|
|
}
|
|
|