aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/com/jogamp/opengl/math/Vec3f.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/jogl/classes/com/jogamp/opengl/math/Vec3f.java')
-rw-r--r--src/jogl/classes/com/jogamp/opengl/math/Vec3f.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/jogl/classes/com/jogamp/opengl/math/Vec3f.java b/src/jogl/classes/com/jogamp/opengl/math/Vec3f.java
index eb1144c07..f1f7cdca4 100644
--- a/src/jogl/classes/com/jogamp/opengl/math/Vec3f.java
+++ b/src/jogl/classes/com/jogamp/opengl/math/Vec3f.java
@@ -193,6 +193,9 @@ public final class Vec3f {
return this;
}
+ /** this = this * { s.x, s.y, s.z }, returns this. */
+ public Vec3f scale(final Vec3f s) { return scale(s.x, s.y, s.z); }
+
/** Returns this + arg; creates new vector */
public Vec3f plus(final Vec3f arg) {
return new Vec3f(this).add(arg);