Esempio n. 1
0
 private int x(float x1, float x2) {
   Transcaler ts = _tile.getTranscaler();
   PointsView.Orientation pvo = _points.getOrientation();
   if (pvo == PointsView.Orientation.X1RIGHT_X2UP) {
     Projector p = _tile.getHorizontalProjector();
     return ts.x(p.u(x1));
   } else {
     Projector p = _tile.getVerticalProjector();
     return ts.x(p.u(x2));
   }
 }
Esempio n. 2
0
 private float x2(int x, int y) {
   Transcaler ts = _tile.getTranscaler();
   PointsView.Orientation pvo = _points.getOrientation();
   if (pvo == PointsView.Orientation.X1RIGHT_X2UP) {
     Projector p = _tile.getHorizontalProjector();
     return (float) p.v(ts.y(y));
   } else {
     Projector p = _tile.getVerticalProjector();
     return (float) p.v(ts.x(x));
   }
 }