Examples of Vector3d


Examples of peasy.org.apache.commons.math.geometry.Vector3D

  public PeasyCam(final PApplet parent, PGraphics pg,  final double lookAtX, final double lookAtY,
      final double lookAtZ, final double distance) {
    this.p = parent;
    this.g  = pg;
    this.startCenter = this.center = new Vector3D(lookAtX, lookAtY, lookAtZ);
    this.startDistance = this.distance = distance;
    this.rotation = new Rotation();
    this.originalMatrix = parent.getMatrix((PMatrix3D)null);

    feed();
View Full Code Here

Examples of quicktime.qd3d.math.Vector3D

/* 129 */     return localPoint3D;
/*     */   }
/*     */
/*     */   public Vector3D getUpVector()
/*     */   {
/* 134 */     return new Vector3D(getFloatAt(24), getFloatAt(28), getFloatAt(32));
/*     */   }
View Full Code Here

Examples of se.llbit.math.Vector3d

  protected void updateCameraPosition() {
    cameraX.removeActionListener(cameraPositionListener);
    cameraY.removeActionListener(cameraPositionListener);
    cameraZ.removeActionListener(cameraPositionListener);

    Vector3d pos = renderMan.scene().camera().getPosition();
    cameraX.setText(decimalFormat.format(pos.x));
    cameraY.setText(decimalFormat.format(pos.y));
    cameraZ.setText(decimalFormat.format(pos.z));

    cameraX.addActionListener(cameraPositionListener);
View Full Code Here

Examples of sk.fiit.jim.math.Vector3D

  }
 
  public void updatePosition(ParsedData data){
    if(data.fixedObjects == null || data.fixedObjects.size() < 1)
      return;
    Vector3D accumulator = Vector3D.cartesian(0.0, 0.0, 0.0);
   
    for(Entry<FixedObject, Vector3D> flag : data.fixedObjects.entrySet()){
      Vector3D absolute = flag.getKey().getAbsolutePosition();
      Vector3D seen = flag.getValue();
      //the order of rotations is SIGNIFICANT! This order is the most suitable for a standing agent, it differs the least from the real position
      Vector3D ourPosition = seen.rotateOverY(agent.rotationY).rotateOverZ(agent.rotationZ).rotateOverX(agent.rotationX).negate();
      ourPosition = ourPosition.add(absolute);
      accumulator = accumulator.add(ourPosition);
    }
    agent.position = accumulator.divide(data.fixedObjects.size());
   
    Log.log(AGENT_MODEL, "My position: [%.2f,%.2f,%.2f]", agent.position.getX(), agent.position.getY(), agent.position.getZ());
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.