Java implementation of the azpos library for azimuthal position calculations.
mvn installimport com.fgrzl.azpos.AzposCalculator;
import com.fgrzl.azpos.PositionInput;
import com.fgrzl.azpos.PositionResult;
public class Example {
public static void main(String[] args) {
PositionInput input = new PositionInput(40.7128, -74.0060, 45.0, 1000.0);
PositionResult result = AzposCalculator.calculatePosition(input);
System.out.printf("Result: %.6f, %.6f%n",
result.getLatitude(), result.getLongitude());
}
}# Compile
mvn compile
# Run tests
mvn test
# Package JAR
mvn package
# Install to local repository
mvn install
# Deploy to repository
mvn deployThis implementation uses the shared test vectors from ../test-vectors/positions.json to ensure consistency with other language implementations.
This library can be published to Maven Central for easy distribution and consumption in Java projects.