@EqualityReference public final class JCameraSignallingClamp extends Object
| Constructor and Description |
|---|
JCameraSignallingClamp()
Construct a new signalling clamp function.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clamp(double x,
double min,
double max)
Clamp the value
x to the given inclusive range [min,
max]. |
double |
getValue() |
boolean |
isClamped() |
public JCameraSignallingClamp()
public void clamp(double x,
double min,
double max)
x to the given inclusive range [min,
max].x - The valuemin - The minimum valuemax - The maximum valuepublic double getValue()
public boolean isClamped()
true if the value passed to the most recent clamp operation
was not in the inclusive range.Copyright © 2017 <code@io7m.com> http://io7m.com