Example usage for org.apache.commons.math3.geometry.spherical.twod S2Point getTheta

List of usage examples for org.apache.commons.math3.geometry.spherical.twod S2Point getTheta

Introduction

In this page you can find the example usage for org.apache.commons.math3.geometry.spherical.twod S2Point getTheta.

Prototype

public double getTheta() 

Source Link

Document

Get the azimuthal angle \( \theta \) in the x-y plane.

Usage

From source file:org.orekit.models.earth.tessellation.EllipsoidTessellator.java

/** Convert a point on the unit 2-sphere to geodetic coordinates.
 * @param point point on the unit 2-sphere
 * @return geodetic point (arbitrarily set at altitude 0)
 *//*from   w w w.  ja  v a  2 s.  c om*/
protected GeodeticPoint toGeodetic(final S2Point point) {
    return new GeodeticPoint(0.5 * FastMath.PI - point.getPhi(), point.getTheta(), 0.0);
}