Hello. I am having trouble to implementing a new functionality in my application.
Based on a point (latitude and longitude), I want that this point automatically transform into a square, with this lat and long as the center. I'm trying something like this to transform the point:
double ang__ = 0;
double co_x1 = (sin(toRadians(ang__ + 90)) * widthImplement) + point.getX();
double co_y1 = (cos(toRadians(ang__ + 90)) * widthImplement) + point.getY();
double co_x2 = (sin(toRadians(ang__ + 270)) * widthImplement) + point.getX();
double co_y2 = (cos(toRadians(ang__ + 270)) * widthImplement) + point.getY();
But it's not working.
Has anyone already done something like that?
Note: I would like to present width options for this square on the screen.