Package fmg.fmg8.umgebung2D

Examples of fmg.fmg8.umgebung2D.Vektor2D.normal()


                            y2 = pol.ypoints[1];

                            Vektor2D verschOrtho = new Vektor2D(x1, y1);
                            verschOrtho.sub(new Vektor2D(x2, y2));
                            Vektor2D verschPar = new Vektor2D(verschOrtho);
                            verschPar.normal();
                            verschPar.mult(30);
                            verschOrtho.ortho();
                            verschOrtho.normal();
                            verschOrtho.mult(-10);
                            Vektor2D versch = new Vektor2D(verschPar);
View Full Code Here


                    norm = new Vektor2D(letzte[j].x, letzte[j].y);
                    norm.sub(new Vektor2D(
                            rob.getPosition().x,
                            rob.getPosition().y));
                    norm.ortho();
                    norm.normal();
                   
                    lang = rob.getFitSum();
                   
                    if (lang <= 0) {
                        lang = 5;
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.