Project: SWT
Bug 253673 Snippet207 doesn't rotate 45
Reported: 2008-11-04 06:24:49 | Status: resolved fixed

The snippet says it is rotating 45 but this is not the case because Math.cos() and Math.sin() use radians and not degrees. The snippet has to look like this to really rotate 45 one needs to pass "45 * Math.PI / 180" to the 2 functions.

Files changed in fix:
examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet207.java