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