Package org.nlogo.api

Examples of org.nlogo.api.Vect.normalize()


    Vect cors = new Vect(oxcor(), oycor(), ozcor());
    Vect up = forward.cross(right);
    Vect xaxis = new Vect(1, 0, 0);
    Vect upxy = new Vect(up.x(), up.y(), 0);
    upxy = upxy.normalize();

    if (up.z() > 0) {
      delta = -delta;
    }
View Full Code Here


    forward = forward.rotateZ(delta);

    cors = cors.add(rotationPoint);

    Vect rightxy = new Vect(right.x(), right.y(), 0);
    rightxy = rightxy.normalize();
    heading = StrictMath.toDegrees(rightxy.angleTo(xaxis));

    oxyandzcor(cors.x(), cors.y(), cors.z());
  }
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.