Package net.phys2d.math

Examples of net.phys2d.math.Matrix2f


    return f1 * f1 + f2 * f2;
  }

  public strictfp Vector2f[] getPoints(ROVector2f paramROVector2f, float paramFloat)
  {
    Matrix2f localMatrix2f = new Matrix2f(paramFloat);
    Vector2f[] arrayOfVector2f = new Vector2f[4];
    Vector2f localVector2f = MathUtil.scale(getSize(), 0.5F);
    arrayOfVector2f[0] = MathUtil.mul(localMatrix2f, new Vector2f(-localVector2f.getX(), -localVector2f.getY()));
    arrayOfVector2f[0].add(paramROVector2f);
    arrayOfVector2f[1] = MathUtil.mul(localMatrix2f, new Vector2f(localVector2f.getX(), -localVector2f.getY()));
View Full Code Here

TOP

Related Classes of net.phys2d.math.Matrix2f

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.