|
JTS Topology Suite - v 1.12 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.vividsolutions.jts.math.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 double value to a given range. |
static int |
clamp(int x,
int min,
int max)
Clamps an int value to a given range. |
static double |
log10(double x)
Computes the base-10 logarithm of a double value. |
| 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
public static int clamp(int x,
int min,
int max)
x - the value to clampmin - the minimum value of the rangemax - the maximum value of the range
public static double log10(double x)
x - a positive number
|
JTS Topology Suite - v 1.12 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||