diff options
Diffstat (limited to 'src/jogl/classes/com/jogamp/opengl/math/Vec2f.java')
-rw-r--r-- | src/jogl/classes/com/jogamp/opengl/math/Vec2f.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/jogl/classes/com/jogamp/opengl/math/Vec2f.java b/src/jogl/classes/com/jogamp/opengl/math/Vec2f.java index 47d1a78dc..d733aca5d 100644 --- a/src/jogl/classes/com/jogamp/opengl/math/Vec2f.java +++ b/src/jogl/classes/com/jogamp/opengl/math/Vec2f.java @@ -160,6 +160,9 @@ public final class Vec2f { return this; } + /** this = this * { s.x, s.y }, returns this. */ + public Vec2f scale(final Vec2f s) { return scale(s.x, s.y); } + /** Returns this + arg; creates new vector */ public Vec2f plus(final Vec2f arg) { return new Vec2f(this).add(arg); |