Package universalelectricity.api.vector

Examples of universalelectricity.api.vector.Vector3.scale()


          NBTTagCompound vectorTag = (NBTTagCompound) nbtTagList.tagAt(i);
          Vector3 position = new Vector3(vectorTag);

          if (scale > 0)
          {
            position.scale(scale);
          }

          int[] blockInfo = new int[] { vectorTag.getInteger(NBT_FIELD_BLOCK_ID), vectorTag.getInteger(NBT_FIELD_BLOCK_METADATA) };

          if (position != null)
View Full Code Here


      {
        double phi = Math.PI * 2 / steps * phi_n;
        double theta = Math.PI / steps * theta_n;

        Vector3 vector = new Vector3(Math.sin(theta) * Math.cos(phi), Math.cos(theta), Math.sin(theta) * Math.sin(phi));
        vector.scale(radius);
        GL11.glTranslated(vector.x, vector.y, vector.z);
        ModelCube.INSTNACE.render();
        GL11.glTranslated(-vector.x, -vector.y, -vector.z);
      }
    }
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.