Examples of Vector2f


Examples of ae.structs.Vector2f

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

Examples of com.base.engine.core.Vector2f

  private Vector3f m_normal;
  private Vector3f m_tangent;
 
  public Vertex(Vector3f pos)
  {
    this(pos, new Vector2f(0,0));
  }
View Full Code Here

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

  private static Vector3f vec(float x, float y, float z) {
    return new Vector3f(x, y, z);
  }

  private static Vector2f vec(float u, float v) {
    return new Vector2f(u, v);
  }
View Full Code Here

Examples of com.jme.math.Vector2f

  // The current world position of the eye
  Vector3f eyeWorld = InputPicker3D.getInputPicker().getCameraPosition(null);
  logger.fine("eyeWorld = " + eyeWorld);

  // The float movement vector in screen space
  Vector2f scrPos = new Vector2f((float)(eventX - dragStartScreen.x),
                                       (float)(eventY - dragStartScreen.y));
  logger.fine("scrPos = " + scrPos);

  Vector2f pressXY = new Vector2f((float)dragStartScreen.x, (float)dragStartScreen.y);
  Vector3f pressWorld = ((InputManager3D)InputManager3D.getInputManager()).
      getCamera().getWorldCoordinates(pressXY, 0f);

  Vector2f dragXY = new Vector2f((float)eventX, (float)eventY);
  Vector3f dragWorld = ((InputManager3D)InputManager3D.getInputManager()).
      getCamera().getWorldCoordinates(dragXY, 0f);

  // The world position of this event (in the view plane)
  Vector3f thisWorld = ((InputManager3D)InputManager3D.getInputManager()).
View Full Code Here

Examples of com.jme3.math.Vector2f

    ti.onNew(0, 0, 0);
    gestureSystem.update(1);
    ti.onRelease(0);
    gestureSystem.update(1);
    //printList(clickVectors);
    Assert.assertTrue(clickVectors.get(0).equals(new Vector2f(0,0)));
    Assert.assertTrue(zoomValues.isEmpty());
  }
View Full Code Here

Examples of crazypants.vecmath.Vector2f

      float cm = RenderUtil.getColorMultiplierForFace(face);
      tes.setColorOpaque_F(cm, cm, cm);
    }

    float scaleFactor = 15f / 16f;
    Vector2f uv = new Vector2f();
    for (ForgeDirection edge : edges) {

      float xLen = 1 - Math.abs(edge.offsetX) * scaleFactor;
      float yLen = 1 - Math.abs(edge.offsetY) * scaleFactor;
      float zLen = 1 - Math.abs(edge.offsetZ) * scaleFactor;
 
View Full Code Here

Examples of eas.simulation.spatial.sim2D.physicalSimulation.physicsEngine.net.phys2d.math.Vector2f

  @Override
  public PanicEnvironment[] generateRunnables(final ParCollection params) {
    final PanicEnvironment world = new PanicEnvironment(
        0,
        params,
        new Vector2f(0, 0),
        1);
    final PanicEnvironment worldWithColumn = new PanicEnvironment(
        0,
        params,
        new Vector2f(0, 0),
        1);

    final PanicScene panicScene = new PanicScene("Scene of Panic", params);
    final PanicSceneWithColumn panicSceneWC = new PanicSceneWithColumn("Scene of Panic", params);
View Full Code Here

Examples of general.datastructures.Vector2f

    }
  }

  @Override
  public double getDistanceTo(IHitable target) {
    Vector2f t = target.getPosition();
    return this.position.getDistanceTo(t);
  }
View Full Code Here

Examples of info.ata4.unity.engine.struct.Vector2f

                            colors.add(c);
                            break;

                        case CHANNEL_UV1:
                        case CHANNEL_UV2:
                            Vector2f vt = new Vector2f();
                            vt.setHalf(half);
                            vt.read(in);
                            if (j == CHANNEL_UV1) {
                                uv1.add(vt);
                            } else {
                                uv2.add(vt);
                            }
View Full Code Here

Examples of javax.vecmath.Vector2f

    public float getAngleAtNode(Node2D node){
        if(!getNodesAsList().contains(node))
            throw new IllegalArgumentException("Node is not contained in this "
                                               + "element: " + node.toString());
       
        Vector2f vnode = new Vector2f(node.getPoint2f());
        Vector2f[] vec = new Vector2f[2];
        int idx = 0;
        for(int i=0; i<3; i++){
            if(nodes[i] == node)
                continue;
           
            vec[idx] = new Vector2f(nodes[i].getPoint2f());
            vec[idx].sub(vnode);
            idx++;
        }
       
        return vec[0].angle(vec[1]);
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.