[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Devel] [bug?] FT_Vector_Rotate
From: |
Joseph Koshy |
Subject: |
[Devel] [bug?] FT_Vector_Rotate |
Date: |
Tue, 13 May 2003 04:03:46 -0700 (PDT) |
The description of 'FT_Vector_Rotate' in the HTML documentation
has a function prototype:
FT_EXPORT( void )
FT_Vector_Rotate( FT_Vector* vec,
FT_Angle angle );
However the description describes 'angle' as:
angle The address of angle.
Either way, I seem to be missing something since I'm not getting the
results that I'm expecting. For example, rotating a vector [x = 1, y = 0]
by 90 degrees does not result in a new vector [x = 0, y = 1].
$ ./a.out
old v1 = [1.0, 0.0]
new v1 = [-1.63, 0.63]
The test program is enclosed. How *does* one use FT_Vector_Rotate?
Regards,
Koshy
<address@hidden>
testangle.c
Description: testangle.c
- [Devel] [bug?] FT_Vector_Rotate,
Joseph Koshy <=