Package com.esri.core.geometry

Examples of com.esri.core.geometry.PeDouble


  static double geodesicDistanceOnWGS84Impl(Point ptFrom, Point ptTo) {
    double a = 6378137.0; // radius of spheroid for WGS_1984
    double e2 = 0.0066943799901413165; // ellipticity for WGS_1984
    double rpu = Math.PI / 180.0;
    PeDouble answer = new PeDouble();
    GeoDist.geodesic_distance_ngs(a, e2, ptFrom.getXY().x * rpu,
        ptFrom.getXY().y * rpu, ptTo.getXY().x * rpu, ptTo.getXY().y
            * rpu, answer, null, null);
    return answer.val;
  }
View Full Code Here


    double az12 = 0.0, az21 = 0.0, dist = 0.0;
    double sigma = 0.0, lam_sph = 0.0;
    int it = 0, kind = 0;

    PeDouble lam = new PeDouble();
    PeDouble phi = new PeDouble();

    /* Are there any values to calculate? */
    if (p_dist == null && p_az12 == null && p_az21 == null) {
      return;
    }
View Full Code Here

  static double geodesicDistanceOnWGS84Impl(Point ptFrom, Point ptTo) {
    double a = 6378137.0; // radius of spheroid for WGS_1984
    double e2 = 0.0066943799901413165; // ellipticity for WGS_1984
    double rpu = Math.PI / 180.0;
    PeDouble answer = new PeDouble();
    GeoDist.geodesic_distance_ngs(a, e2, ptFrom.getXY().x * rpu,
        ptFrom.getXY().y * rpu, ptTo.getXY().x * rpu, ptTo.getXY().y
            * rpu, answer, null, null);
    return answer.val;
  }
View Full Code Here

  static double geodesicDistanceOnWGS84Impl(Point ptFrom, Point ptTo) {
    double a = 6378137.0; // radius of spheroid for WGS_1984
    double e2 = 0.0066943799901413165; // ellipticity for WGS_1984
    double rpu = Math.PI / 180.0;
    PeDouble answer = new PeDouble();
    GeoDist.geodesic_distance_ngs(a, e2, ptFrom.getXY().x * rpu,
        ptFrom.getXY().y * rpu, ptTo.getXY().x * rpu, ptTo.getXY().y
            * rpu, answer, null, null);
    return answer.val;
  }
View Full Code Here

TOP

Related Classes of com.esri.core.geometry.PeDouble

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.