Examples of mul()


Examples of javax.vecmath.Matrix4f.mul()

          drotX.rotX(-dy * 2 * (float)Math.PI);
      drotY.rotY(-dx * 2 * (float)Math.PI);
     
      Matrix4f transform = new Matrix4f(rot);
      transform.mul(drotX);
      transform.mul(drotY);
      Matrix4f tmp = new Matrix4f(rot);
      tmp.invert();
      transform.mul(tmp);

      DirectionalLight[] lights = scene.getLights();
View Full Code Here

Examples of javax.vecmath.Matrix4f.mul()

      }
          drotX.rotX(dy * 2 * (float)Math.PI);
      drotY.rotY(dx * 2 * (float)Math.PI);

      Matrix4f transform = new Matrix4f(rot);
      transform.mul(drotX);
      transform.mul(drotY);
      Matrix4f tmp = new Matrix4f(rot);
      tmp.invert();
      transform.mul(tmp);

View Full Code Here

Examples of javax.vecmath.Matrix4f.mul()

          drotX.rotX(dy * 2 * (float)Math.PI);
      drotY.rotY(dx * 2 * (float)Math.PI);

      Matrix4f transform = new Matrix4f(rot);
      transform.mul(drotX);
      transform.mul(drotY);
      Matrix4f tmp = new Matrix4f(rot);
      tmp.invert();
      transform.mul(tmp);

      DirectionalLight light = scene.getLights()[lightRotationMode];
View Full Code Here

Examples of javax.vecmath.Matrix4f.mul()

      }
          drotX.rotX(dy * 2 * (float)Math.PI);
      drotY.rotY(dx * 2 * (float)Math.PI);
     
      Matrix4f transform = new Matrix4f(rot);
      transform.mul(drotX);
      transform.mul(drotY);
      Matrix4f tmp = new Matrix4f(rot);
      tmp.invert();
      transform.mul(tmp);

View Full Code Here

Examples of javax.vecmath.Matrix4f.mul()

          drotX.rotX(dy * 2 * (float)Math.PI);
      drotY.rotY(dx * 2 * (float)Math.PI);
     
      Matrix4f transform = new Matrix4f(rot);
      transform.mul(drotX);
      transform.mul(drotY);
      Matrix4f tmp = new Matrix4f(rot);
      tmp.invert();
      transform.mul(tmp);

      DirectionalLight[] lights = scene.getLights();
View Full Code Here

Examples of javax.vecmath.Matrix4f.mul()

    AxisAngle4f aa = new AxisAngle4f(view, (dx-dy) * (float)Math.PI);
   
    Matrix4f mat = new Matrix4f();
    mat.setIdentity();
    mat.setRotation(aa);
    mat.mul(rot);
    rot = mat;
    applyTransform();
  }
 
  public void applyTransform(){
View Full Code Here

Examples of javax.vecmath.Matrix4f.mul()

        _pos2DY = newY;
        AxisAngle4f aa = new AxisAngle4f(view, (dx - dy) * (float) Math.PI);
        Matrix4f mat = new Matrix4f();
        mat.setIdentity();
        mat.setRotation(aa);
        mat.mul(_rot);
        _rot = mat;
        applyTransform();
    }

    public void applyTransform() {
View Full Code Here

Examples of javax.vecmath.Quat4f.mul()

    Quat4f dorn = Stack.alloc(Quat4f.class);
    dorn.set(axis.x, axis.y, axis.z, (float) Math.cos(fAngle * timeStep * 0.5f));
    Quat4f orn0 = curTrans.getRotation(Stack.alloc(Quat4f.class));

    Quat4f predictedOrn = Stack.alloc(Quat4f.class);
    predictedOrn.mul(dorn, orn0);
    predictedOrn.normalize();
//  #endif
    predictedTransform.setRotation(predictedOrn);
  }

View Full Code Here

Examples of jpbrt.core.Vector.mul()

            Global.coordinateSystem(e2.cross(e1).normalizeLocal(), dpdu, dpdv);
        }
        else
        {
            double invdet = 1.0 / determinant;
            dpdu = dp1.mul(dv2).sub(dp2.mul(dv1)).mulLocal(invdet);
            dpdv = dp2.mul(du1).sub(dp1.mul(du2)).mulLocal(invdet);
        }
       
        // interpolate (u, v) triangle parametric coordinates
        double b0 = 1 - b1 - b2;
View Full Code Here

Examples of net.fortytwo.ripple.model.NumericValue.mul()

            NumericValue a, result;

            a = mc.toNumericValue(stack.getFirst());
            stack = stack.getRest();

            result = a.mul(a).mul(a);

            solutions.put(
                    stack.push(result));
        }
    }
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.