Examples of Tuple3f


Examples of javax.vecmath.Tuple3f

          default:
            vout.add(s);
          }
          break;
        case 3: // isPt
          Tuple3f t = Atom.atomPropertyTuple(atom, tok);
          if (t == null)
            error(ERROR_unrecognizedAtomProperty, Token.nameOf(tok));
          switch (minmaxtype) {
          case Token.allfloat:
            fout[i] = (float) Math.sqrt(t.x * t.x + t.y * t.y + t.z * t.z);
 
View Full Code Here

Examples of javax.vecmath.Tuple3f

    }
  }
 
  private void scanEdge(Tuple4f v1, Tuple4f v2, Tuple3f c1, Tuple3f c2) {
    Tuple4f first, last;
    Tuple3f cfirst, clast;
   
    if (v1.y < v2.y) {
      first = v1;
      last = v2;
      cfirst = c1;
View Full Code Here

Examples of javax.vecmath.Tuple3f

/* 117 */     p.z = (-p.z);
/*     */   }
/*     */
/*     */   static void divScalar(double scalar, Tuple3f u)
/*     */   {
/*     */     Tuple3f tmp1_0 = u; tmp1_0.x = ((float)(tmp1_0.x / scalar));
/*     */     Tuple3f tmp13_12 = tmp1_0; tmp13_12.y = ((float)(tmp13_12.y / scalar));
/*     */     Tuple3f tmp25_24 = tmp1_0; tmp25_24.z = ((float)(tmp25_24.z / scalar));
/*     */   }
View Full Code Here

Examples of whitening.opengl.s.nehe.commons.Tuple3f

  protected float anguloHorizontal;
  protected float anguloVertical;
  protected float velocidade;
 
  public Camera() {
    this.posicaoCamera = new Tuple3f();
    this.direcaoCamera = new Tuple3f();
   
    this.posicaoCamera.set(-257.0f, -257.0f, 0.0f);
   
    this.posicaoCamera.set(-1.8f, 333.5f, 100.75f);
    this.direcaoCamera.set(-0.0075f, -0.95f, -0.3f);
View Full Code Here

Examples of whitening.opengl.s.nehe.commons.Tuple3f

      anguloHorizontal += 360.0f;
    }
  }
 
  public void atualizarPerspectiva(GL gl) {
    Tuple3f v = new Tuple3f();
        float modelViewMatrix[] = new float[16];

        gl.glRotatef(anguloHorizontal, 0.0f, 1.0f, 0.0f);
        gl.glRotatef(anguloVertical, 1.0f, 0.0f, 0.0f);
       
        gl.glGetFloatv(GL.GL_MODELVIEW_MATRIX, modelViewMatrix, 0);
        direcaoCamera.set(modelViewMatrix[8], modelViewMatrix[9], -modelViewMatrix[10]);
       
        gl.glLoadIdentity();

        gl.glRotatef(anguloVertical, 1.0f, 0.0f, 0.0f);
        gl.glRotatef(anguloHorizontal, 0.0f, 1.0f, 0.0f);

        v.scale(velocidade, direcaoCamera);

        posicaoCamera.add(v);

        gl.glTranslatef(-posicaoCamera.getX(), -posicaoCamera.getY(), -posicaoCamera.getZ());
  }
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.