Package javax.vecmath

Examples of javax.vecmath.Matrix3f.transform()


          w.set(b[m[0] > m[1] ? m[0] > m[2] ? 0 : 2 : m[1] > m[2] ? 1 : 2]);

          tmp.normalize(w);
          Support(tmp, simplex[4]); r.transform(w);
          tmp.normalize(w);
          Support(tmp, simplex[2]); r.transform(w);
          tmp.normalize(w);
          Support(tmp, simplex[3]); r.transform(w);
          order = 4;
          return (true);
        }
View Full Code Here


          tmp.normalize(w);
          Support(tmp, simplex[4]); r.transform(w);
          tmp.normalize(w);
          Support(tmp, simplex[2]); r.transform(w);
          tmp.normalize(w);
          Support(tmp, simplex[3]); r.transform(w);
          order = 4;
          return (true);
        }
        // Triangle
        case 2: {
View Full Code Here

    Vector3f tmp1 = body1.getAngularVelocity(Stack.alloc(Vector3f.class));
    mat1.transform(tmp1);

    Vector3f tmp2 = body2.getAngularVelocity(Stack.alloc(Vector3f.class));
    mat2.transform(tmp2);

    float rel_vel = jac.getRelativeVelocity(
        body1.getLinearVelocity(Stack.alloc(Vector3f.class)),
        tmp1,
        body2.getLinearVelocity(Stack.alloc(Vector3f.class)),
View Full Code Here

  public void invXform(Vector3f inVec, Vector3f out) {
    out.sub(inVec, origin);

    Matrix3f mat = Stack.alloc(basis);
    mat.transpose();
    mat.transform(out);
  }
 
  public Quat4f getRotation(Quat4f out) {
    MatrixUtil.getRotation(basis, out);
    return out;
View Full Code Here

        // ////////////
        Matrix3f mat = new Matrix3f();
        vehicleControl.getObjectId().getInvInertiaTensorWorld(mat);
        javax.vecmath.Vector3f vector3f = new javax.vecmath.Vector3f(new float[] { 0f, dampingFactor, 0f });
        mat.transform(vector3f);
        javax.vecmath.Vector3f interpolatedVec = new javax.vecmath.Vector3f();
        vehicleControl.getObjectId().getAngularVelocity(interpolatedVec).add(vector3f);
        // ////////////

        // diff berechnen (pos)
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.