FAQ
Cover
\
Build
\
Source
\
Bugs
\
Reference
\
Libraries
\
Tools
The bugs database has moved
here
.
Bug 203 : PGraphics2 rotate should use double to keep lines straight
Last modified: 2005-11-09 12:43
P
roject:
processing
trash
Version:
unspecified
Co
m
ponent:
android
book
core
libraries
pde
reference
tools
web
Status:
RESOLVED
Resolution:
WONTFIX -
Pr
i
ority:
P4
Severity:
normal
Platform
All
O
S:
All
Windows
Mac OS
Linux
Other
Reporter:
jedierikb
Assigned To:
fry
Attachment
Type
Created
Size
Actions
example of rotate code with skewed lines
application/zip
2005-11-09 12:37
28.70 KB
Description
: Opened: 2005-11-08 19:05
If you rotate straight lines by HALF_PI, you will see that they don't line
up straight... everything is slightly off-kilter.
This is because rotate in PGraphics2 takes a float. If you use a double
instead, then everything lines up correctly when rotated. This requires
changing some PConstants to doubles, and PGraphics too.
This bug shows up in 95 on windowsxp. I don't see it on the mac, probably
because the resolution on my powerbook sucks.
Additional Comment
#1 From fry 2005-11-09 12:32
it's actually ok on the mac, it's just the sun vm on the pc (and maybe linux?), meaning that
it's a sun bug.
switching to doubles for internal calculations would be way slower and a big mess,
unfortunately. floats have more than enough resolution to properly handle this (esp. since
the mac is ok with it).
could you post the sketch as a zip file? (tools -> archive sketch, then attach it to the bug
report here).
Additional Comment
#2 From jedierikb 2005-11-09 12:37
edit
]
example of rotate code with skewed lines
Additional Comment
#3 From fry 2005-11-09 12:43
thank ye.