From 93fd9649cef55ef732af61127344e5b027ba2b57 Mon Sep 17 00:00:00 2001 From: Daniel Shiffman Date: Tue, 14 May 2013 18:55:09 -0400 Subject: [PATCH] removing div() and mult() by vectors #1544 --- core/src/processing/core/PVector.java | 52 --------------------------- 1 file changed, 52 deletions(-) diff --git a/core/src/processing/core/PVector.java b/core/src/processing/core/PVector.java index 5cff06670..7459fbdbe 100644 --- a/core/src/processing/core/PVector.java +++ b/core/src/processing/core/PVector.java @@ -573,30 +573,6 @@ public class PVector implements Serializable { return target; } - public void mult(PVector v) { - x *= v.x; - y *= v.y; - z *= v.z; - } - - - /** - * @param v1 the x, y, and z components of a PVector - * @param v2 the x, y, and z components of a PVector - */ - static public PVector mult(PVector v1, PVector v2) { - return mult(v1, v2, null); - } - - - static public PVector mult(PVector v1, PVector v2, PVector target) { - if (target == null) { - target = new PVector(v1.x*v2.x, v1.y*v2.y, v1.z*v2.z); - } else { - target.set(v1.x*v2.x, v1.y*v2.y, v1.z*v2.z); - } - return target; - } /** @@ -644,34 +620,6 @@ public class PVector implements Serializable { } - /** - * Divide each element of one vector by the elements of another vector. - */ - public void div(PVector v) { - x /= v.x; - y /= v.y; - z /= v.z; - } - - - /** - * Divide each element of one vector by the individual elements of another - * vector, and return the result as a new PVector. - */ - static public PVector div(PVector v1, PVector v2) { - return div(v1, v2, null); - } - - static public PVector div(PVector v1, PVector v2, PVector target) { - if (target == null) { - target = new PVector(v1.x/v2.x, v1.y/v2.y, v1.z/v2.z); - } else { - target.set(v1.x/v2.x, v1.y/v2.y, v1.z/v2.z); - } - return target; - } - - /** * ( begin auto-generated from PVector_dist.xml ) *