All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.sf.geographiclib.GnomonicData Maven / Gradle / Ivy

Go to download

This is a Java implementation of the geodesic algorithms from GeographicLib. This is a self-contained library to solve geodesic problems on an ellipsoid model of the earth. It requires Java version 1.7 or later.

There is a newer version: 2.0
Show newest version
/**
 * Implementation of the net.sf.geographiclib.GnomonicData class
 *
 * Copyright (c) BMW Car IT GmbH (2014)  and
 * licensed under the MIT/X11 License. For more information, see
 * http://geographiclib.sourceforge.net/
 **********************************************************************/
package net.sf.geographiclib;

/**
 * The results of gnomonic projection.
 * 

* This is used to return the results for a gnomonic projection of a point * (lat, lon) given a center point of projection (lat0, * lon0). The returned GnomonicData objects always include the * parameters provided to * {@link Gnomonic#Forward(double, double, double, double) Gnomonic.Forward} * and * {@link Gnomonic#Reverse(double, double, double, double) Gnomonic.Reverse} * and it always includes the fields x, y, azi. and * rk. **********************************************************************/ public class GnomonicData { /** * latitude of center point of projection (degrees). **********************************************************************/ public double lat0; /** * longitude of center point of projection (degrees). **********************************************************************/ public double lon0; /** * latitude of point (degrees). **********************************************************************/ public double lat; /** * longitude of point (degrees). **********************************************************************/ public double lon; /** * easting of point (meters). **********************************************************************/ public double x; /** * northing of point (meters). **********************************************************************/ public double y; /** * azimuth of geodesic at point (degrees). **********************************************************************/ public double azi; /** * reciprocal of azimuthal scale at point. **********************************************************************/ public double rk; /** * Initialize all the fields to Double.NaN. **********************************************************************/ public GnomonicData() { lat0 = lon0 = lat = lon = x = y = azi = rk = Double.NaN; } /** * Constructor initializing all the fields for gnomonic projection of a point * (lat, lon) given a center point of projection (lat0, * lon0). *

* @param lat0 * latitude of center point of projection (degrees). * @param lon0 * longitude of center point of projection (degrees). * @param lat * latitude of point (degrees). * @param lon * longitude of point (degrees). * @param x * easting of point (meters). * @param y * northing of point (meters). * @param azi * azimuth of geodesic at point (degrees). * @param rk * reciprocal of azimuthal scale at point. */ public GnomonicData(double lat0, double lon0, double lat, double lon, double x, double y, double azi, double rk) { this.lat0 = lat0; this.lon0 = lon0; this.lat = lat; this.lon = lon; this.x = x; this.y = y; this.azi = azi; this.rk = rk; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy