Esempio n. 1
0
 private int y(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.y(p.u(x2));
   } else {
     Projector p = _tile.getVerticalProjector();
     return ts.y(p.u(x1));
   }
 }
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));
   }
 }