Package se.llbit.math

Examples of se.llbit.math.Vector3d.cross()


  public synchronized void onStrafeLeft() {
    Vector3d d = new Vector3d(1, 0, 0);
    tmpTransform.rotY(yaw);
    tmpTransform.transform(d);
    Vector3d right = new Vector3d();
    right.cross(up, d);
    origin.scaleAdd(-1, right, origin);
    updateOrigin();
    refresh();
  }
View Full Code Here


  public synchronized void onStrafeRight() {
    Vector3d d = new Vector3d(1, 0, 0);
    tmpTransform.rotY(yaw);
    tmpTransform.transform(d);
    Vector3d right = new Vector3d();
    right.cross(up, d);
    origin.scaleAdd(1, right, origin);
    updateOrigin();
    refresh();
  }
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.