public static enum Snap.Position extends Enum<Snap.Position>
Due to precision differences it is hard to define when something is exactly 90° or "on-node" like TOWER or PILLAR or if it is more "on-edge" (EDGE). The default mechanism is to prefer "on-edge" even if it could be 90°. To prefer "on-node" you could use e.g. GHPoint.equals with a default precision of 1e-6.
| Modifier and Type | Method and Description |
|---|---|
static Snap.Position |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Snap.Position[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Snap.Position EDGE
public static final Snap.Position TOWER
public static final Snap.Position PILLAR
public static Snap.Position[] values()
for (Snap.Position c : Snap.Position.values()) System.out.println(c);
public static Snap.Position 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 © 2012–2021. All rights reserved.