Home > other >  World coordinates of a point on a consult, another rotate after the new coordinates formula
World coordinates of a point on a consult, another rotate after the new coordinates formula

Time:09-25

X0=a + (x - a) * cos (beta) - (y - b) * sin (beta);
Y0=a + (y - b) * cos (beta) + (x - a) * sin (beta);

This is a point at any point around the rotation formula, I tested to be correct, but now the problem is on the world coordinate work abnormal,
So I want to ask you,
The Windows on the upper left corner is 0, 0 he is working in the fourth quadrant in the fourth quadrant is normal
But not in the first quadrant, such as the game is the first world map coordinates, in the first quadrant,
I have several days, because this thing has been make uncertain, mathematics is the elementary school graduation, so please help the

Want to achieve is like Lol in rectangular skills to preview the effect, the rectangle around the person to

CodePudding user response:

The
refer to the original poster y66721986 response:
, mathematics is the elementary school graduation

Please first system of learning: high school physics, space analytic geometry, linear algebra, etc.,
You also mention "quadrant", this way of thinking is not suitable for processing of space geometry problems

CodePudding user response:

Your formula is wrong.

X0=a + (x - a) * cos (beta) - (y - b) * sin (beta);
Y0= a + (y - b) * cos (beta) + (x - a) * sin (beta);

CodePudding user response:

X0=a + (x - a) * cos (beta) - (y - b) * sin (beta);
Y0= + (y - b) * cos (beta) + (x - a) * sin (beta);

Has nothing to do with quadrant
  • Related