Package com.googlecode.jumpnevolve.math

Examples of com.googlecode.jumpnevolve.math.Vector.rotate()


    // ref: Richtung nach der das Rechteck ausgerichtet wird
    Vector pos = this.getPosition().sub(this.getParentPosition()), ref = this
        .getReferenceVector(), re = Vector.ZERO;

    // Vektor entsprechend der Ausrichtung berechnen
    re = pos.rotate(-ref.clockWiseAng());

    // Dimensionsangaben sind immer positiv
    // Jedes Rechteck muss über Breite und Höhe verfügen
    re = re.modifyX(Math.max(Math.abs(re.x), 1));
    re = re.modifyY(Math.max(Math.abs(re.y), 1));
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.