Examples of FloatMatrix


Examples of com.ngt.jopenmetaverse.shared.sim.rendering.math.FloatMatrix

    this.indices = indices;
  }

  public void Render(RenderingContext renderingContext)
  {
    FloatMatrix totalMatrix = renderingContext.getResultingMatrix();
    floatBuffer.position(0);
    floatBuffer.put(totalMatrix.getColumnWiseFlatData()).position(0);
   
    GL20.glUniformMatrix4(renderingContext.getProjectionMatrixUniform(), false, floatBuffer);
   
    GL15.glBindBuffer(GL15.GL_ARRAY_BUFFER, vertexVBOId);
View Full Code Here

Examples of com.ngt.jopenmetaverse.shared.sim.rendering.math.FloatMatrix

    // Prim roation and position and scale
    FloatMatrix4x4 srt4x4Matrix= Math3D.convertToFloatMatrix4x4(Math3D.CreateSRTMatrix(Prim.Scale, RenderRotation, RenderPosition));

    //    FloatMatrix totalMatrix = scene.getPerspectiveMatrix().multiply(scene.getTranslationMatrix()).multiply(scene.getRotationMatrix().multiply(srt2Matrix));
    FloatMatrix totalMatrix = scene.getResultingMatrix().multiply(srt4x4Matrix);
    floatBuffer.position(0);
    floatBuffer.put(totalMatrix.getColumnWiseFlatData()).position(0);

    GL20.glUniformMatrix4(scene.getProjectionMatrixUniform(), false, floatBuffer);


    // Do we have animated texture on this face
View Full Code Here

Examples of org.jblas.FloatMatrix

          int j = ipiv[i] - 1;
          int t = indices[i];
          indices[i] = indices[j];
          indices[j] = t;
      }
      FloatMatrix result = new FloatMatrix(size, size);
      for (int i = 0; i < size; i++)
          result.put(indices[i], i, 1.0f);
      return result;
  }
View Full Code Here

Examples of org.jblas.FloatMatrix

    public BenchmarkResult run(int size, double seconds) {
        int counter = 0;
        long ops = 0;

        FloatMatrix A = randn(size, size);
        FloatMatrix B = randn(size, size);
        FloatMatrix C = randn(size, size);

        Timer t = new Timer();
        t.start();
        while (!t.ranFor(seconds)) {
            A.mmuli(B, C);
View Full Code Here

Examples of org.jblas.FloatMatrix

    public BenchmarkResult run(int size, double seconds) {
        int counter = 0;
        long ops = 0;

        FloatMatrix A = randn(size, size);
        FloatMatrix B = randn(size, size);
        FloatMatrix C = randn(size, size);

        Timer t = new Timer();
        t.start();
        while (!t.ranFor(seconds)) {
            A.mmuli(B, C);
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.