# Thread: Problem with CL_Vec2i::angle

1. ## Problem with CL_Vec2i::angle

Hello, everyone. I have problem with CL_Vec2i::angle.

PHP Code:
``` CL_Vec2i Coord1(100, 100); CL_Vec2i Coord2(300, 300); CL_Angle Angle = Coord2.angle(Coord1);  ```
Angle.to_degrees() - return 0 =(

Thnx for help.

2. 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.

3. Originally Posted by rombust
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.
ups. Im srry. thnx for help

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•