4
\$\begingroup\$

I know that there's always a big debate on the handedness of 3D coordinate systems, but I can't seem to find any information about the handedness of 2D coordinate systems.

Usually, the X axis points to the right, but the Y axis can point up (in the case of many game engines) or down (in the case of screen coordinates and in Godot). What are the standards for these?

  • Which one of those is "left-handed" and which one is "right-handed"?

  • Are rotations always clockwise? Counter-clockwise? From X to Y? From Y to X?

\$\endgroup\$
4
  • \$\begingroup\$ "Handedness" requires specifying a third axis. In 3D, if I name my thumb, index, and middle fingers x, y, and z respectively, then only one of my hands can be oriented to match the axes of a given coordinate system (for instance, in Unity my left hand matches and my right doesn't; in 3DS Max it's the opposite). But in 2D, I can make either hand match if I just rotate it — no mirroring required. So it's not clear which term would apply there. \$\endgroup\$
    – DMGregory
    Commented Feb 27, 2019 at 23:28
  • \$\begingroup\$ There is no way to rotate it into the other way while saying inside of the 2D plane. If you rotate 180 degrees to change the direction of the Y axis, you also change the direction of the X axis. Changing between X right, Y up, and X right, Y down, requires mirroring vertically, or rotating through a non-existant 3rd dimension (just as I can change between 3D handedness if I could rotate in 4D). \$\endgroup\$ Commented Feb 28, 2019 at 0:45
  • \$\begingroup\$ Right, but your hand is in 3 dimensions, and you have to choose a rotation to put your thumb and forefinger into the 2D plane in the first place. I can choose a rotation that works for my left hand, and I can also choose a rotation that works for my right hand. So if either hand has a valid choice to map up to the given coordinate system, what would lead us to say the "right hand" is the correct match and not the left? \$\endgroup\$
    – DMGregory
    Commented Feb 28, 2019 at 0:48
  • \$\begingroup\$ In my experience, rotations with positive angles typically rotate counter clockwise. I've found that to be the case in high school math and in computer graphics. Once you know that positive rotation is counter clockwise, and you have x = cos(a) and y = sin(a), then the only way to have counter clockwise rotation is to have y as up, not down. \$\endgroup\$
    – Bram
    Commented Feb 28, 2019 at 1:54

1 Answer 1

5
\$\begingroup\$

It entirely depends on what you want to do with it and both have reasons why they exist.

The one where the top left corner is the origin and the positive xes point away from them are based on the way the pixels are stored, while the oke where y points at the sky uses a more mathematical approach. 2D systems thus generally use the former, 3d (or at least rasterization based ones) use the latter.

As mentioned by DMGregory, there's no handedness to these, because that system depends on the three axes. This is because a 2d plane divides the space into two parts and there's no way to tell by default, which should "contain" the normal vector.

Since rotation relies on trigonometric functions, it's also coordinate system dependent whether it's a CW or CCW system. When the angle is 0°, the vector you get is \$\vec v(cos(0°),sin(0°))=\vec v(1,0)\$, and at 90° it's \$\vec v(0,1)\$. In the "top-left origin" system this is clockwise, while it's counter-clockwise in the more traditional coordinate system.

One thing I must add is that even though I use the term "traditional" when describing the coordinate system where y points up, there's nothing stopping you, even in vanilla mathematics, from using other conventions. This is why you need to draw the arrows at the end of the axes.

\$\endgroup\$
3
  • 1
    \$\begingroup\$ If not "handedness", there must be another word for it. \$\endgroup\$ Commented Feb 28, 2019 at 1:14
  • \$\begingroup\$ Does the chirality of 2D coordinate systems have names? \$\endgroup\$ Commented Feb 14 at 23:30
  • \$\begingroup\$ @AaronFranke Best you get is Y-/Y down and Y+/Y up \$\endgroup\$
    – Bálint
    Commented Feb 28 at 15:04

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .