public static enum AngleFormat.RoundingMethod extends Enum<AngleFormat.RoundingMethod>
Options are:
Enum Constant and Description |
---|
ROUND_HALF_DOWN
Always round downwards: e.g.
|
ROUND_HALF_EVEN
Round towards the even neighbour: e.g.
|
ROUND_HALF_UP
Always round upwards: e.g.
|
Modifier and Type | Method and Description |
---|---|
static AngleFormat.RoundingMethod |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AngleFormat.RoundingMethod[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AngleFormat.RoundingMethod ROUND_HALF_EVEN
2.5 => 2, 3.5 => 4
. This method minimizes
cumulative error over many values.public static final AngleFormat.RoundingMethod ROUND_HALF_UP
2.5 => 3, 3.5 => 4
.public static final AngleFormat.RoundingMethod ROUND_HALF_DOWN
2.5 => 2, 3.5 => 3
.public static AngleFormat.RoundingMethod[] values()
for (AngleFormat.RoundingMethod c : AngleFormat.RoundingMethod.values()) System.out.println(c);
public static AngleFormat.RoundingMethod valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 1996–2019 Geotools. All rights reserved.