Package eas.math.geometry

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


            }
            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


                    this.winkel.set(i, this.random.nextDouble() * 0.25);
                }
            }
            if (this.versch.get(i)) {
                Vector2D vSchiebg = umg.getDynVersch()[this.waende.get(i)];
                vSchiebg.translate(new Vector2D(
                        this.xRicht.get(i),
                        this.yRicht.get(i)));
               
                if (null != umg.verschWand(
                        this.waende.get(i),
View Full Code Here

                    this.xRicht.set(i, this.random.nextDouble() * 0.25);
                    this.yRicht.set(i, this.random.nextDouble() * 0.25);
                }
            } else {
                Vector2D vSchiebg = umg.getDynVersch()[this.waende.get(i)];
                vSchiebg.translate(new Vector2D(
                        -this.xRicht.get(i),
                        -this.yRicht.get(i)));
               
                if (null != umg.verschWand(
                        this.waende.get(i),
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.