Package nodebox.graphics

Examples of nodebox.graphics.Point


     * The location of a point based on angle and distance.
     */
    public static Point coordinates(Point p, double angle, double distance) {
        double x = p.x + Math.cos(radians(angle)) * distance;
        double y = p.y + Math.sin(radians(angle)) * distance;
        return new Point(x, y);
    }
View Full Code Here

TOP

Related Classes of nodebox.graphics.Point

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.