freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Devel] [bug?] FT_Vector_Rotate


From: Graham Asher
Subject: RE: [Devel] [bug?] FT_Vector_Rotate
Date: Tue, 13 May 2003 14:11:39 +0100

<<<<<<
$ ./a.out
old v1 = [1.0, 0.0]
new v1 = [-1.63, 0.63]

The test program is enclosed.
>>>>>>

Actually, I now see that the test program is wrong. The code

        printf("new v1 = [%d.%d, %d.%d]\n", v1.x >> 6, v1.x & 0x3F,v1.y >> 6, 
v1.y
& 0x3F);

is not the right way to display 26.6 fixed point numbers. The correct way
is:

        printf("new v1 = [%f,%f]\n", v1.x  / 64.0,v1.y / 64.0);

Graham Asher






reply via email to

[Prev in Thread] Current Thread [Next in Thread]