eu.hansolo.toolboxfx.geom.CardinalDirection Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of toolboxfx Show documentation
Show all versions of toolboxfx Show documentation
ToolboxFX contains a collection of useful tools
/*
* SPDX-License-Identifier: Apache-2.0
*
* Copyright 2016-2021 Gerrit Grunwald.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package eu.hansolo.toolboxfx.geom;
public enum CardinalDirection {
N("North", 348.75, 11.25),
NNE("North North-East", 11.25, 33.75),
NE("North-East", 33.75, 56.25),
ENE("East North-East", 56.25, 78.75),
E("East", 78.75, 101.25),
ESE("East South-East", 101.25, 123.75),
SE("South-East", 123.75, 146.25),
SSE("South South-East", 146.25, 168.75),
S("South", 168.75, 191.25),
SSW("South South-West", 191.25, 213.75),
SW("South-West", 213.75, 236.25),
WSW("West South-West", 236.25, 258.75),
W("West", 258.75, 281.25),
WNW("West North-West", 281.25, 303.75),
NW("North-West", 303.75, 326.25),
NNW("North North-West", 326.25, 348.75);
public final String direction;
public final double from;
public final double to;
CardinalDirection(final String DIRECTION, final double FROM, final double TO) {
direction = DIRECTION;
from = FROM;
to = TO;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy