Examples of OrientedBoundingBox


Examples of com.ardor3d.bounding.OrientedBoundingBox

                final BoundingSphere vSphere = (BoundingSphere) volume;
                return !(Double.isInfinite(vSphere.getRadius()) || Double.isNaN(vSphere.getRadius()));
            }

            case OBB: {
                final OrientedBoundingBox obb = (OrientedBoundingBox) volume;
                return Vector3.isValid(obb.getExtent());
            }

            default:
                return true;
        }
View Full Code Here

Examples of org.mt4j.components.bounds.OrientedBoundingBox

    if (this.hasBounds()){
      return this.getBounds().getCenterPointLocal();
    }else{
      //TODO this fails if the polygon isnt in the X,Y,0 Plane!
//      return this.getCenterOfMas2DLocal();
      return new OrientedBoundingBox(this).getCenterPointLocal();
    }
  }
View Full Code Here

Examples of org.mt4j.components.bounds.OrientedBoundingBox

  /**
   * Computes a default bounding box for the shape.
   * This gets called after setting creating a shape and its setGeometryInfo method is called.
   */
  protected IBoundingShape computeDefaultBounds(){
    return new OrientedBoundingBox(this);
  }
View Full Code Here

Examples of org.mt4j.components.bounds.OrientedBoundingBox

   */
  protected float getHeightXYRelativeToParent() {
    if (this.hasBounds()){
      return this.getBounds().getHeightXY(TransformSpace.RELATIVE_TO_PARENT);
    }else{
      OrientedBoundingBox tempBounds = new OrientedBoundingBox(this);
      return tempBounds.getHeightXY(TransformSpace.RELATIVE_TO_PARENT);
    }
  }
View Full Code Here

Examples of org.mt4j.components.bounds.OrientedBoundingBox

   */
  protected float getHeightXYGlobal() {
    if (this.hasBounds()){
      return this.getBounds().getHeightXY(TransformSpace.GLOBAL);
    }else{
      OrientedBoundingBox tempBounds = new OrientedBoundingBox(this);
      return tempBounds.getHeightXY(TransformSpace.GLOBAL);
    }
  }
View Full Code Here

Examples of org.mt4j.components.bounds.OrientedBoundingBox

   */
  public Vector3D getHeightXYVectLocal() {
    if (this.hasBounds()){
      return this.getBounds().getHeightXYVectLocal();
    }else{
      OrientedBoundingBox tempBounds = new OrientedBoundingBox(this);
      return tempBounds.getHeightXYVectLocal();
    }
  }
View Full Code Here

Examples of org.mt4j.components.bounds.OrientedBoundingBox

   */
  protected float getWidthXYRelativeToParent() {
    if (this.hasBounds()){
      return this.getBounds().getWidthXY(TransformSpace.RELATIVE_TO_PARENT);
    }else{
      OrientedBoundingBox tempBounds = new OrientedBoundingBox(this);
      return tempBounds.getWidthXY(TransformSpace.RELATIVE_TO_PARENT);
    }
  }
View Full Code Here

Examples of org.mt4j.components.bounds.OrientedBoundingBox

   */
  protected float getWidthXYGlobal() {
    if (this.hasBounds()){
      return this.getBounds().getWidthXY(TransformSpace.GLOBAL);
    }else{
      OrientedBoundingBox tempBounds = new OrientedBoundingBox(this);
      return tempBounds.getWidthXY(TransformSpace.GLOBAL);
    }
  }
View Full Code Here

Examples of org.mt4j.components.bounds.OrientedBoundingBox

   */
  public Vector3D getWidthXYVectLocal() {
    if (this.hasBounds()){
      return this.getBounds().getWidthXYVectLocal();
    }else{
      OrientedBoundingBox tempBounds = new OrientedBoundingBox(this);
      return tempBounds.getWidthXYVectLocal();
    }
  }
View Full Code Here

Examples of org.mt4j.components.bounds.OrientedBoundingBox

    this.addGestureListener(RotateProcessor.class, new DefaultRotateAction());
  }
 
  @Override
  protected IBoundingShape computeDefaultBounds() {
    return new OrientedBoundingBox(this);
  }
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.