Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Hello,
i am looking for a way to rotate a set of coordinates. The underlying coordinate system is the Web-Mercator projected coordinate system. As all length and angles are constant on the two dimensions on a PCS it should be possible to rotate coordinates.
So far i am constructing the Web Mercator PCS like this:
On the Proj Wiki Page i read that it is possible doing that with an AffineTransformation but i am struggling setting it up correctly.
Rotating about the origin without offset should be done with the following matrix following wiki but when transforming the coordinate, the result is way off. (Only for an angle of 90 the resulting coordinate is correct)
However looking at the constructor signals that the TranslateX/Y values maybe should be used different. The Test-Method AffineTransformationTest() is also using some values, where i am not sure where they come from.
What do i have to change to rotate a coordinate about and angle within a PCS?