Package com.google.common.geometry
Class S2Projections.UvTransform
java.lang.Object
com.google.common.geometry.S2Projections.UvTransform
- Enclosing class:
S2Projections
A transform from 3D cartesian coordinates to the 2D coordinates of a face. For (x, y, z)
coordinates within the face, the resulting UV coordinates should each lie in the inclusive
range [-1,1], with the center of the face along that axis at 0.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract double
xyzToU
(double x, double y, double z) Returns the 'u' coordinate of the [u, v] point projected onto a cube face from the given [x, y, z] position.final double
Returns the 'u' coordinate of the [u, v] point projected onto a cube face from the given [x, y, z] position.abstract double
xyzToV
(double x, double y, double z) Returns the 'v' coordinate of the [u, v] point projected onto a cube face from the given [x, y, z] position.final double
Returns the 'v' coordinate of the [u, v] point projected onto a cube face from the given [x, y, z] position.
-
Constructor Details
-
UvTransform
private UvTransform()Internal implementations only.
-
-
Method Details
-
xyzToU
public abstract double xyzToU(double x, double y, double z) Returns the 'u' coordinate of the [u, v] point projected onto a cube face from the given [x, y, z] position. -
xyzToU
Returns the 'u' coordinate of the [u, v] point projected onto a cube face from the given [x, y, z] position. -
xyzToV
public abstract double xyzToV(double x, double y, double z) Returns the 'v' coordinate of the [u, v] point projected onto a cube face from the given [x, y, z] position. -
xyzToV
Returns the 'v' coordinate of the [u, v] point projected onto a cube face from the given [x, y, z] position.
-