|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.vividsolutions.jts.util.MathUtil
public class MathUtil
Various utility functions for mathematical and numerical operations.
| Constructor Summary | |
|---|---|
MathUtil()
|
|
| Method Summary | |
|---|---|
static double |
clamp(double x,
double min,
double max)
Clamps a value to a given range. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MathUtil()
| Method Detail |
|---|
public static double clamp(double x,
double min,
double max)
x - the value to clampmin - the minimum value of the rangemax - the maximum value of the range
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||