public interface InvertibleProjection
Projection
which
provides the inverse transform for invertible projections. Not all projections
are required to implement InvertibleProjection, but those that do may work
with additional painters.
For example, CursorTextPainter
uses
InvertibleProjection
to determine the data displayed at the current
mouse location.Modifier and Type | Method and Description |
---|---|
double |
getTextureFractionX(double vertexX,
double vertexY)
Given a position in physical units, return the corresponding location
within a rectangular array of data.
|
double |
getTextureFractionY(double vertexX,
double vertexY) |
double getTextureFractionX(double vertexX, double vertexY)
This method returns the first (row) index of the data at (vertexX, vertexY).
vertexX
- a x coordinate in physical spacevertexY
- a y coordinate in physical spacedouble getTextureFractionY(double vertexX, double vertexY)
vertexX
- a x coordinate in physical spacevertexY
- a y coordinate in physical spacegetTextureFractionX( double, double )
Copyright © 2013 Metron, Inc.. All rights reserved.