Looking at an article on metanetsoftware.com
here, it states (at the bottom of the page) that left hand and right hand normals are defined as follows:
Quote:
Every 2D vector has two such normals: the right hand and left hand normal. As you might expect, the right hand normal points to the right of the vector, and the left hand normal points to the left.
Given a vector a, the right hand normal of a is simply:
rn.x = -a.y;
rn.y = a.x;
and the left hand normal is:
ln.x = a.y;
ln.y = -a.x;
Note that ln = -rn.
If I create a vector:
Vector2 R = new Vector2();
R.X = 10;
R.Y = 0;
and find the right hand normal as they suggested:
Vector2 normal_RH = new Vector2();
normal_RH.X = -CCW.Y;
normal_RH.Y = CCW.X;
The normalised normal = (0,1).
If vector R is pointing +ve x ------->
then surely the vector (0,1) is the left hand normal and not the right?
What is going on?
Thank you.