diff --git a/engine/src/core/com/jme3/math/Vector2f.java b/engine/src/core/com/jme3/math/Vector2f.java index a9c6e6bf4..c1c2bcba4 100644 --- a/engine/src/core/com/jme3/math/Vector2f.java +++ b/engine/src/core/com/jme3/math/Vector2f.java @@ -237,7 +237,7 @@ public final class Vector2f implements Savable, Cloneable, java.io.Serializable * An amount between 0.0 - 1.0 representing a percentage change * from this towards finalVec */ - public Vector2f interpolate(Vector2f finalVec, float changeAmnt) { + public Vector2f interpolateLocal(Vector2f finalVec, float changeAmnt) { this.x = (1 - changeAmnt) * this.x + changeAmnt * finalVec.x; this.y = (1 - changeAmnt) * this.y + changeAmnt * finalVec.y; return this; @@ -255,7 +255,7 @@ public final class Vector2f implements Savable, Cloneable, java.io.Serializable * An amount between 0.0 - 1.0 representing a precentage change * from beginVec towards finalVec */ - public Vector2f interpolate(Vector2f beginVec, Vector2f finalVec, + public Vector2f interpolateLocal(Vector2f beginVec, Vector2f finalVec, float changeAmnt) { this.x = (1 - changeAmnt) * beginVec.x + changeAmnt * finalVec.x; this.y = (1 - changeAmnt) * beginVec.y + changeAmnt * finalVec.y; diff --git a/engine/src/core/com/jme3/math/Vector4f.java b/engine/src/core/com/jme3/math/Vector4f.java index dfd42f1b0..5db9d4a6d 100644 --- a/engine/src/core/com/jme3/math/Vector4f.java +++ b/engine/src/core/com/jme3/math/Vector4f.java @@ -783,7 +783,7 @@ public final class Vector4f implements Savable, Cloneable, java.io.Serializable * @param changeAmnt An amount between 0.0 - 1.0 representing a precentage * change from this towards finalVec */ - public Vector4f interpolate(Vector4f finalVec, float changeAmnt) { + public Vector4f interpolateLocal(Vector4f finalVec, float changeAmnt) { this.x=(1-changeAmnt)*this.x + changeAmnt*finalVec.x; this.y=(1-changeAmnt)*this.y + changeAmnt*finalVec.y; this.z=(1-changeAmnt)*this.z + changeAmnt*finalVec.z; @@ -799,7 +799,7 @@ public final class Vector4f implements Savable, Cloneable, java.io.Serializable * @param changeAmnt An amount between 0.0 - 1.0 representing a precentage * change from beginVec towards finalVec */ - public Vector4f interpolate(Vector4f beginVec,Vector4f finalVec, float changeAmnt) { + public Vector4f interpolateLocal(Vector4f beginVec,Vector4f finalVec, float changeAmnt) { this.x=(1-changeAmnt)*beginVec.x + changeAmnt*finalVec.x; this.y=(1-changeAmnt)*beginVec.y + changeAmnt*finalVec.y; this.z=(1-changeAmnt)*beginVec.z + changeAmnt*finalVec.z;