Code example for Projection

Methods: fromScreenLocation

0
        //������ 
        mDistance = 0.0f;
        mArea = 0.0f;
        mFlag = true;
        //���݂̒n�}�\���ʒu���擾 
        LatLng l = mProjection.fromScreenLocation(new Point((int)x, (int)y));
        //�n�߂̈ܓx�A�y�x���Z�o 
        mStart = new Location("start");
        mStart.setLatitude(l.latitude);
        mStart.setLongitude(l.longitude);
        if(DEBUG){
            Log.d(AreaTransformActivity.TAG, "lat = " + l.latitude + " ,long = " + l.longitude);
        } 
        mPrev = mStart;    
    } 
     
    private void touch_move(float x, float y) {
        float dx = Math.abs(x - mX);
        float dy = Math.abs(y - mY);
        if (dx >= TOUCH_TOLERANCE || dy >= TOUCH_TOLERANCE) {
            mPath.quadTo(mX, mY, (x + mX)/2, (y + mY)/2);