From a7e75e9ce364877b5c3e496ecb4f7db7a91fa2d7 Mon Sep 17 00:00:00 2001 From: benfry Date: Sun, 7 Nov 2010 22:14:43 +0000 Subject: [PATCH] fix for angleBetween issue (issue #435), plus todo items --- android/core/src/processing/core/PVector.java | 5 ++++- core/src/processing/core/PVector.java | 5 ++++- core/todo.txt | 7 +++++++ todo.txt | 13 +++++++++---- 4 files changed, 24 insertions(+), 6 deletions(-) diff --git a/android/core/src/processing/core/PVector.java b/android/core/src/processing/core/PVector.java index 932775c85..2e89bea79 100644 --- a/android/core/src/processing/core/PVector.java +++ b/android/core/src/processing/core/PVector.java @@ -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); } diff --git a/core/src/processing/core/PVector.java b/core/src/processing/core/PVector.java index 932775c85..2e89bea79 100644 --- a/core/src/processing/core/PVector.java +++ b/core/src/processing/core/PVector.java @@ -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); } diff --git a/core/todo.txt b/core/todo.txt index bbe0321ee..b8242b569 100644 --- a/core/todo.txt +++ b/core/todo.txt @@ -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] diff --git a/todo.txt b/todo.txt index 0fd6f1fa4..d86e6f6df 100644 --- a/todo.txt +++ b/todo.txt @@ -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)