Package toxi.geom

Examples of toxi.geom.Vec2D.heading()


        this.theta = MathUtils.radians(theta);
    }

    public void apply(VerletParticle2D p) {
        Vec2D delta = p.sub(rootPos);
        float heading = MathUtils.floor(delta.heading() / theta) * theta;
        p.set(rootPos.add(Vec2D.fromTheta(heading).scaleSelf(delta.magnitude())));
    }

}
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.