fix for angleBetween issue (issue #435), plus todo items

This commit is contained in:
benfry
2010-11-07 22:14:43 +00:00
parent 362f74e5af
commit a7e75e9ce3
4 changed files with 24 additions and 6 deletions
@@ -548,8 +548,11 @@ public class PVector implements Serializable {
// http://code.google.com/p/processing/issues/detail?id=340
// Otherwise if outside the range, acos() will return NaN
// http://www.cppreference.com/wiki/c/math/acos
if (amt <= -1 || amt >= 1) {
if (amt <= -1) {
return PConstants.PI;
} else if (amt >= 1) {
// http://code.google.com/p/processing/issues/detail?id=435
return 0;
}
return (float) Math.acos(amt);
}
+4 -1
View File
@@ -548,8 +548,11 @@ public class PVector implements Serializable {
// http://code.google.com/p/processing/issues/detail?id=340
// Otherwise if outside the range, acos() will return NaN
// http://www.cppreference.com/wiki/c/math/acos
if (amt <= -1 || amt >= 1) {
if (amt <= -1) {
return PConstants.PI;
} else if (amt >= 1) {
// http://code.google.com/p/processing/issues/detail?id=435
return 0;
}
return (float) Math.acos(amt);
}
+7
View File
@@ -6,8 +6,13 @@ o http://code.google.com/p/processing/issues/detail?id=352
X color() problem with alpha
X http://code.google.com/p/processing/issues/detail?id=327
X appears to have been some old code that wasn't removed
X anglebetween regression
X http://code.google.com/p/processing/issues/detail?id=435
_ OpenGL Applets won't load with JRE 6 update 21 or higher
_ http://code.google.com/p/processing/issues/detail?id=429
_ need to finish font changes wrt native fonts before any release
_ right now not in a good place--default font will be bitmapped and ugly
_ http://code.google.com/p/processing/issues/detail?id=416
@@ -324,8 +329,10 @@ _ http://dev.processing.org/bugs/show_bug.cgi?id=806
_ accessors inside PFont need a lot of work
_ osx 10.5 (not 10.4) performing text width calculation differently
_ http://dev.processing.org/bugs/show_bug.cgi?id=972
_ http://code.google.com/p/processing/issues/detail?id=128
_ Automatically use textMode(SCREEN) with text() when possible
_ http://dev.processing.org/bugs/show_bug.cgi?id=1020
_ http://code.google.com/p/processing/issues/detail?id=134
P2D, P3D, PPolygon [1.0]
+9 -4
View File
@@ -1,6 +1,6 @@
0192
X Getting error: Syntax error on token "else", } expected
X http://code.google.com/p/processing/issues/detail?id=400
J Getting error: Syntax error on token "else", } expected
J http://code.google.com/p/processing/issues/detail?id=400
C disappearing horizontal scroll bar
C appears to have become much worse with the other scrollbar fix
C ...which itself doesn't seem to be working properly
@@ -9,8 +9,15 @@ J Autoformat bug (new java "for loop" syntax)
J http://code.google.com/p/processing/issues/detail?id=420
J matching brace problem in PDE
J http://code.google.com/p/processing/issues/detail?id=417
J fix syntax highlighting of focusGained and others
J http://dev.processing.org/bugs/show_bug.cgi?id=659
J http://code.google.com/p/processing/issues/detail?id=82
J compiling with static final global variable
J http://code.google.com/p/processing/issues/detail?id=427
X don't let PDE open sketches with bad names (reported by max)
_ Patch: Processing IDE destroys symbolic links
_ http://code.google.com/p/processing/issues/detail?id=432
_ Processing cannot run because it could not ... store your settings.
_ http://code.google.com/p/processing/issues/detail?id=410
@@ -559,8 +566,6 @@ _ problem with big floats:
_ http://processing.org/discourse/yabb/YaBB.cgi?board=Syntax;action=display;num=1061302380
_ problem with small floats:
_ http://processing.org/discourse/yabb_beta/YaBB.cgi?board=Programs;action=display;num=1115500448
_ fix syntax highlighting of focusGained and others
_ http://dev.processing.org/bugs/show_bug.cgi?id=659
_ verify (and document) public access members of PApplet
_ http://dev.processing.org/bugs/show_bug.cgi?id=660
_ some docs missing (therefore not syntax highlighting)