Hello, everyone. I have problem with CL_Vec2i::angle.
Angle.to_degrees() - return 0 =(PHP Code:
CL_Vec2i Coord1(100, 100);
CL_Vec2i Coord2(300, 300);
CL_Angle Angle = Coord2.angle(Coord1);
Thnx for help.
Hello, everyone. I have problem with CL_Vec2i::angle.
Angle.to_degrees() - return 0 =(PHP Code:
CL_Vec2i Coord1(100, 100);
CL_Vec2i Coord2(300, 300);
CL_Angle Angle = Coord2.angle(Coord1);
Thnx for help.
It should be 0, shouldn't it ?
CL_Vec's are vectors. i.e. "A quantity having direction as well as magnitude"
So imagine, relative to zero, we have 2 vectors
A) 100, 100
B) 300, 300
Since B is a multiple of A, it has the same direction. Thus, the angle between them is 0 degrees.
Bookmarks