Aid with this isue
<p>Here is my camera class:</p>

<pre><code>public void setPosition( float x, float y )
{
    positionX = x;
    positionY = y;
}

public void applyTransform(GraphicsContext c)
{
    c.getCanvas().translate(-getPositionX(), -getPositionY());
    c.getCanvas().scale(getScale(), getScale());
}

public RectF getCamRect(int width, int height)
{
    camRect.top = getPositionY();
    camRect.left = getPositionX();
    camRect.bottom = camRect.top + ((float)height * (1.0f / getScale()));
    camRect.right = camRect.left + ((float)width * (1.0f / getScale()));

    return camRect;
}
</code></pre>

<p>And here is where I render the cam rect to test.</p>

<pre><code>@Override
protected void onDraw(Canvas canvas)
{   
    graphicsContext.setCanvas(canvas);
    graphicsContext.clear();
    camera.applyTransform(graphicsContext);
    RectF screen = camera.getCamRect(getWidth(), getHeight());
    graphicsContext.getCanvas().drawRect(screen, p);
</code></pre>

<p>I would expect the cam rectangle to span the whole screen regardless of the transformation applied but instead it runs away as I move meaning I guess my top left calculation is wrong, but its size is correct.</p>

<p>What could be wrong?</p>

<p>Thanks</p>
