Package eas.simulation.spatial.sim2D.physicalSimulation.physicsEngine.net.phys2d.raw.collide

Examples of eas.simulation.spatial.sim2D.physicalSimulation.physicsEngine.net.phys2d.raw.collide.IntersectionGatherer$IntersectionComparator


    sweep.insert(0, true, vertsA[0].dot(normal));
    sweep.insert(0, true, vertsA[1].dot(normal));
    sweep.addVerticesToSweep(false, vertsB);
    int[][] collEdgeCands = sweep.getOverlappingEdges();
   
    IntersectionGatherer intGath = new IntersectionGatherer(vertsA, vertsB);
    for ( int i = 0; i < collEdgeCands.length; i++ )
      intGath.intersect(collEdgeCands[i][0], collEdgeCands[i][1]);
   
    Intersection[] intersections = intGath.getIntersections();
   
    return populateContacts(contacts, vertsA, vertsB, intersections);
  }
View Full Code Here


   */
  public Intersection[][] getIntersectionPairs(Vector2f[] vertsA, Vector2f[] vertsB, int[][] collEdgeCands) {
    if ( collEdgeCands.length == 0 )
      return new Intersection[0][2];
   
    IntersectionGatherer fpl = new IntersectionGatherer(vertsA, vertsB);
   
    for ( int i = 0; i < collEdgeCands.length; i++ ) {
      fpl.intersect(collEdgeCands[i][0], collEdgeCands[i][1]);
    }
   
    return fpl.getIntersectionPairs();
  }
View Full Code Here

TOP

Related Classes of eas.simulation.spatial.sim2D.physicalSimulation.physicsEngine.net.phys2d.raw.collide.IntersectionGatherer$IntersectionComparator

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.