Examples of Vector3f


Examples of ae.structs.Vector3f

  private Vector2f point2D;
  private Vector2f delta2D;
  private Vector3f point3D;
 
  public GLMousePoint() {
    this(new Vector2f(), new Vector2f(), new Vector3f());
  }
View Full Code Here

Examples of cc.plural.math.Vector3f

    public Vector3f min;

    public Vector3f max;

    public BoundingVolume() {
        min = new Vector3f();
        max = new Vector3f();
    }
View Full Code Here

Examples of colonies.lunatrius.client.lunatrius.schematica.util.Vector3f

    if (par1RendererSchematicChunk.isInFrustrum && !par2RendererSchematicChunk.isInFrustrum) {
      return -1;
    } else if (!par1RendererSchematicChunk.isInFrustrum && par2RendererSchematicChunk.isInFrustrum) {
      return 1;
    } else {
      Vector3f position = this.settings.playerPosition.clone().sub(this.settings.offset.x, this.settings.offset.y, this.settings.offset.z);
      double dist1 = par1RendererSchematicChunk.distanceToPoint(position);
      double dist2 = par2RendererSchematicChunk.distanceToPoint(position);
      return dist1 > dist2 ? 1 : (dist1 < dist2 ? -1 : 0);
    }
  }
View Full Code Here

Examples of com.base.engine.core.Vector3f

    {
      int i0 = m_indices.get(i);
      int i1 = m_indices.get(i + 1);
      int i2 = m_indices.get(i + 2);

      Vector3f v1 = m_positions.get(i1).Sub(m_positions.get(i0));
      Vector3f v2 = m_positions.get(i2).Sub(m_positions.get(i0));

      Vector3f normal = v1.Cross(v2).Normalized();

      m_normals.get(i0).Set(m_normals.get(i0).Add(normal));
      m_normals.get(i1).Set(m_normals.get(i1).Add(normal));
      m_normals.get(i2).Set(m_normals.get(i2).Add(normal));
    }
View Full Code Here

Examples of com.flansmod.common.vector.Vector3f

    float speed = 0.5F * type.throwSpeed;
    motionX = axes.getXAxis().x * speed;
    motionY = axes.getXAxis().y * speed;
    motionZ = axes.getXAxis().z * speed;
    if(type.spinWhenThrown)
      angularVelocity = new Vector3f(0F, 0F, 10F);
    if(type.throwSound != null)
      PacketPlaySound.sendSoundPacket(posX, posY, posZ, FlansMod.soundRange, dimension, type.throwSound, true);
  }
View Full Code Here

Examples of com.googlecode.gwtgl.example.client.util.math.Vector3f

  }

  private static float[] createVertexNormalsArray() {
    // throw new UnsupportedOperationException("not implemented yet");
    List<Vector3f> normals = new ArrayList<Vector3f>(24);
    Vector3f front = vec(0, 0, 1);
    Vector3f back = vec(0, 0, -1);
    Vector3f left = vec(-1, 0, 0);
    Vector3f right = vec(1, 0, 0);
    Vector3f top = vec(0, 1, 0);
    Vector3f bottom = vec(0, -1, 0);
    normals.add(front);
    normals.add(front);
    normals.add(front);
    normals.add(front);
    normals.add(front);
View Full Code Here

Examples of com.jme.math.Vector3f

     */
    public void updateGUI() {
        // Fetch the current transform from the movable component
        Cell cell = editor.getCell();
        CellTransform cellTransform = cell.getLocalTransform();
        Vector3f translation = cellTransform.getTranslation(null);
        Quaternion rotation = cellTransform.getRotation(null);
        Vector3f scale = cellTransform.getScaling(null);
        float[] angles = rotation.toAngles(new float[3]);

        // Update the translation spinners
        translationXTF.setValue(translation.x);
        translationYTF.setValue(translation.y);
View Full Code Here

Examples of com.jme3.math.Vector3f

    public ModelPosition(){
  this(0,0,0, 0,0,0);
    }
    public ModelPosition(float x, float y, float z,
       float rotx, float roty, float rotz){
  location = new Vector3f(x,y,z);
  rotation = new Vector3f(rotx,roty,rotz);
    }
View Full Code Here

Examples of com.thecrouchmode.vector.Vector3f

   
    Matrix4f scale = Matrix4f.scale(1);
    Matrix4f translation = Matrix4f.translation(0,0,0);
    Matrix4f rotation = Matrix4f.identity;
    //Matrix4f model = translation.multiply(scale);
    Quaternion zrotation = new Quaternion(-Math.PI/360, new Vector3f(0,1,2));
    Quaternion rotQ = zrotation;
   
    float ztrans = 0;
    float xtrans = 0;
   
    Vector3f camForw = Vector3f.zUnit;
    Vector3f camSide = Vector3f.xUnit.scale(-1);
   
    double value = 0;
   
    time = System.currentTimeMillis();
    int fpsMod = 0;
   
    Light light = Light.builder()
        .intensity(255/1, 255/2, 255/3)
        .pos(1, 1, 1).build();
    shader.setUniform("lightPos", light.pos.xyz());
    shader.setUniform("lightIntensity", light.intensity);
   
    Matrix4f view = Matrix4f.view(
        new Vector3f(0, 0, -5),
        camForw,
        Vector3f.cross(camSide, camForw));
   
    float camX = 0;
    float camZ = 0;
   
    Vector3f trans = new Vector3f(1, 0.5, -4);
   
    while(true){
      try{
        if(Display.isCloseRequested()){
          Display.destroy();
View Full Code Here

Examples of crazypants.vecmath.Vector3f

          GL11.glPushMatrix();
          GL11.glTranslatef((float) x + 0.5f, (float) y + 0.5f, (float) z + 0.5f);
          {
            GL11.glPushMatrix();
            GL11.glScalef(globalScale, globalScale, globalScale);
            Vector3f pos = new Vector3f(0, 1.2f, 0);
            float size = 0.5f;
            RenderUtil.drawBillboardedText(pos, toRender, size, bgCol);
            GL11.glPopMatrix();
          }
          GL11.glPopMatrix();
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.