javax.vecmath.Vector3f



API Populatity

2 Client projects

Project: javax

Package: javax.vecmath

Project MovingBlocks/Terasology in file ...terasology.world.block.loader.BlockDefinition.java (2013-08-11)
@@ -21,6 +21,7 @@
 import org.terasology.world.block.Block;
 import org.terasology.world.block.BlockPart;
 
+import javax.vecmath.Vector3f;
 import javax.vecmath.Vector4f;
 import java.util.EnumMap;
 import java.util.List;
@@ -49,6 +50,8 @@
 
     public byte luminance = 0;
 
+    public Vector3f tint = new Vector3f();
+
     public List<String> categories = Lists.newArrayList();
 
     public String tile = "";
Project MovingBlocks/Terasology in file ...componentSystem.rendering.BlockDamageRenderer.java (2012-07-06)
@@ -19,6 +19,7 @@
 
 import javax.vecmath.Vector2f;
 import javax.vecmath.Vector3d;
+import javax.vecmath.Vector3f;
 import javax.vecmath.Vector4f;
 
 import static org.lwjgl.opengl.GL11.*;
@@ -59,7 +60,7 @@ public void renderOverlay() {
         glBindTexture(GL11.GL_TEXTURE_2D, effectsTexture.getId());
         glEnable(GL11.GL_BLEND);
         glBlendFunc(GL_DST_COLOR, GL_ZERO);
-        Vector3d cameraPosition = CoreRegistry.get(WorldRenderer.class).getActiveCamera().getPosition();
+        Vector3f cameraPosition = CoreRegistry.get(WorldRenderer.class).getActiveCamera().getPosition();
 
         for (EntityRef entity : entityManager.iteratorEntities(HealthComponent.class, BlockComponent.class)) {
             HealthComponent health = entity.getComponent(HealthComponent.class);
Project MovingBlocks/Terasology in file ...a.org.terasology.model.structures.ViewFrustum.java (2012-07-06)
@@ -21,6 +21,7 @@
 import org.terasology.rendering.world.WorldRenderer;
 
 import javax.vecmath.Vector3d;
+import javax.vecmath.Vector3f;
 import java.nio.FloatBuffer;
 
 /**
@@ -133,7 +134,7 @@ public boolean intersects(AABB aabb) {
 
         Vector3d[] aabbVertices = aabb.getVertices();
 
-        Vector3d cp = CoreRegistry.get(WorldRenderer.class).getActiveCamera().getPosition();
+        Vector3f cp = CoreRegistry.get(WorldRenderer.class).getActiveCamera().getPosition();
 
         for (int i = 0; i < 6; i++) {
             if (_planes[i].getA() * (aabbVertices[0].x - cp.x) + _planes[i].getB() * (aabbVertices[0].y - cp.y) + _planes[i].getC() * (aabbVertices[0].z - cp.z) + _planes[i].getD() > 0)