Package com.thecrouchmode.vector

Examples of com.thecrouchmode.vector.Vector4f


//              1+3*(float)Math.sin(-2*value),
//              1+1*(float)Math.cos(-2*value),
//              1f,//,
//              1.0f);
         
          light.pos = new Vector4f(trans, 1.0f);

         
          shader.use();
         
          shader.setUniform("lightPos", light.pos.xyz());
View Full Code Here


      posSet = true;
        return this;       
      }
     
      public Builder pos(Vector3f pos){
      return pos(new Vector4f(pos, 1));    
      }
View Full Code Here

      public Builder pos(Vector3f pos){
      return pos(new Vector4f(pos, 1));    
      }
     
      public Builder pos(float x, float y, float z){
      return pos(new Vector4f(x, y, z, 1));    
      }
View Full Code Here

    System.out.println(new Quaternion(4, new Vector3f(0,3,0)).rotationMatrix());
 
 
    System.out.println();
   
    Vector4f a4 = new Vector4f(43, 1, 5, 6);

    Vector4f b4 = new Vector4f(4, 2, 67, 2);
   
    System.out.println(MVP_manual.multiply(a4).normalize());

    System.out.println(MVP_manual.multiply(a4.normalize()).normalize());
   
View Full Code Here

TOP

Related Classes of com.thecrouchmode.vector.Vector4f

Copyright © 2018 www.massapicom. 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.