Package graphics.common

Examples of graphics.common.Angle


public class Utils {

    public Angle twoPointsAngle2D( Point p1, Point p2 ) {
        double theta = Math.atan2(p2.getRealY() - p1.getRealY(),
                p2.getRealX() - p1.getRealX() );
        Angle ret = Angles.get( theta, 0.0, 0.0 );
        return ret;
    }
View Full Code Here

TOP

Related Classes of graphics.common.Angle

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.