Examples of AABox


Examples of net.phys2d.raw.shapes.AABox

      float x = b.getPosition().getX();
      float y = b.getPosition().getY();
      float rad = ((Circle) b.getShape()).getRadius();
      g.drawOval((int) (x-rad),(int) (y-rad),(int) (rad*2),(int) (rad*2));
   
      AABox box = b.getShape().getBounds();
      float width2 = box.getWidth() / 2;
      float height2 = box.getWidth() / 2;
      g.setColor(Color.lightGray);
      g.drawRect((int) (x-width2),(int) (y-height2),
            (int) box.getWidth(),(int) box.getHeight());
    }
   
    if (spaces != null) {
      for (int i=0;i<spaces.size();i++) {
        QuadSpaceStrategy.Space space = (QuadSpaceStrategy.Space) spaces.get(i);
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.