Package org.jbox2d.common

Examples of org.jbox2d.common.Vec2.mul()


        return screenCenter.y - y;
    }

    public static Vec2 getDisplayCenter() {
        Vec2 displaySize = new Vec2(graphics().width(), graphics().height());
        return displaySize.mul(0.5f);
    }

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