Interface S2Projections.XyzTransform

  • Enclosing class:
    S2Projections

    static interface S2Projections.XyzTransform
    A transform from 2D cartesian coordinates of a face to 3D directional vectors. The resulting vectors are not necessarily of unit length.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      double uvToX​(double u, double v)
      Returns the 'x' coordinate for the [x, y, z] point on the unit sphere that projects to the given [u, v] point on a cube face.
      double uvToY​(double u, double v)
      Returns the 'y' coordinate for the [x, y, z] point on the unit sphere that projects to the given [u, v] point on a cube face.
      double uvToZ​(double u, double v)
      Returns the 'z' coordinate for the [x, y, z] point on the unit sphere that projects to the given [u, v] point on a cube face.
    • Method Detail

      • uvToX

        double uvToX​(double u,
                     double v)
        Returns the 'x' coordinate for the [x, y, z] point on the unit sphere that projects to the given [u, v] point on a cube face.
      • uvToY

        double uvToY​(double u,
                     double v)
        Returns the 'y' coordinate for the [x, y, z] point on the unit sphere that projects to the given [u, v] point on a cube face.
      • uvToZ

        double uvToZ​(double u,
                     double v)
        Returns the 'z' coordinate for the [x, y, z] point on the unit sphere that projects to the given [u, v] point on a cube face.