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

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

Introduction

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

Prototype

public double getPhi() 

Source Link

Document

Get the polar angle \( \varphi \).

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 www  . j  av a  2  s .c o m
protected GeodeticPoint toGeodetic(final S2Point point) {
    return new GeodeticPoint(0.5 * FastMath.PI - point.getPhi(), point.getTheta(), 0.0);
}