Package eas.math.geometry

Examples of eas.math.geometry.Vector2D.scale()


        if (env.getVisualizationAngleCenterPoint() != null) {
            pos.rotate(env.getVisualizationAngleCenterPoint(), env.getVisualizationAngleRAD());
        }

        pos.scale(Vector2D.NULL_VECTOR, new Vector2D(scale, scale));
        Vector2D midTranslation = new Vector2D(
                env.getScreenWidth() / 2,
                env.getScreenHeight() / 2);
        midTranslation.sub(b.centerPoint());
        pos.translate(midTranslation);
View Full Code Here


                Rectangle2D boundingBox = env2D.getBoundingBox(false);
                env2D.setZoomBox(new Rectangle2D(boundingBox.upperLeftCorner(), boundingBox.lowerRightCorner()));
            }
            Vector2D delta = new Vector2D(deltaVector);
            double globalScale = env2D.globalScale();
            delta.scale(Vector2D.NULL_VECTOR, new Vector2D(1 / globalScale, 1 / globalScale));
            Vector2D newMiddle = new Vector2D(env2D.getZoomBoxMiddle());
            newMiddle.translate(delta);
            env2D.setZoomBoxMiddle(newMiddle);
        } catch (Exception e) {
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.