rect and line
mouse position dalam cartesian