protected void squareToImageSample ( float x , float y , RectangleRotate_F32 region ) { // -1 because it starts counting at 0. otherwise width+1 samples are made x *= region . width - 1 ; y *= region . height - 1 ; imageX = x * c - y * s + region . cx ; imageY = x * s + y * c + region . cy ; }
Converts a point from square coordinates into image coordinates