Package org.matheusdev.util.collision

Examples of org.matheusdev.util.collision.Rect


    this.map = new HashMap<>();
    this.queryList = new ArrayList<>();
  }

  public void add(E e) {
    Rect rect = e.getAABB();

    int beginx = ((int) rect.x) / width;
    int beginy = ((int) rect.y) / height;
    int endx = ((int) (rect.x + rect.w)) / width;
    int endy = ((int) (rect.y + rect.h)) / height;
View Full Code Here

TOP

Related Classes of org.matheusdev.util.collision.Rect

Copyright © 2018 www.massapicom. 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.