public void PremulAndSetInto(BuffVector2f v) { float x = v.getX() * getM00() + v.getY() * getM10(); float y = v.getX() * getM01() + v.getY() * getM11(); v.set(x, y); }
public void MulAndSetInto(BuffVector2f v) { float x = getM00() * v.getX() + getM01() * v.getY(); float y = getM10() * v.getX() + getM11() * v.getY(); v.set(x, y); }
public Vector2f Premul(BuffVector2f v) { float x = v.getX() * getM00() + v.getY() * getM10(); float y = v.getX() * getM01() + v.getY() * getM11(); return(new Vector2f(x, y)); }
public Vector2f Mul(BuffVector2f v) { float x = getM00() * v.getX() + getM01() * v.getY(); float y = getM10() * v.getX() + getM11() * v.getY(); return(new Vector2f(x, y)); }
public void PremulAndSetInto(BuffVector2 v) { if (v is BuffVector2f) { this.PremulAndSetInto((BuffVector2f)v); } else { BuffVector2f _v = new BuffVector2f(v); this.PremulAndSetInto(_v); _v.getInto(v); } }
public void PremulAndSetInto(BuffVector2f v) { v.set(v.getX() * getM00() + v.getY() * getM10(), v.getX() * getM01() + v.getY() * getM11()); }
public void MulAndSetInto(BuffVector2f v) { v.set(getM00() * v.getX() + getM01() * v.getY(), getM10() * v.getX() + getM11() * v.getY()); }
public Vector2f Premul(BuffVector2f v) { return(new Vector2f(v.getX() * getM00() + v.getY() * getM10(), v.getX() * getM01() + v.getY() * getM11())); }
public Vector2f Mul(BuffVector2f v) { return(new Vector2f(getM00() * v.getX() + getM01() * v.getY(), getM10() * v.getX() + getM11() * v.getY())); }
public double AngleTo(BuffVector2f other) { // http://stackoverflow.com/questions/2150050/finding-signed-angle-between-vectors return(Math.atan2(getX() * other.getY() - getY() * other.getX(), getX() * other.getX() + getY() * other.getY())); }