Package com.l2client.navigation.Line2D

Examples of com.l2client.navigation.Line2D.LINE_CLASSIFICATION


//    if (hasBounds()) {
      // get intersection point of direct route and border lines of tile
      Line2D l = new Line2D(startPos.x, startPos.z, endPos.x, endPos.z);
      Vector2f cross = new Vector2f();
      //FIXME aemhm what if we do not intersect top?!?!
      LINE_CLASSIFICATION classi = top.Intersection(l, cross);
     
      //check which side we cross
      if(classi != LINE_CLASSIFICATION.SEGMENTS_INTERSECT){
        classi = right.Intersection(l, cross);
        if(classi != LINE_CLASSIFICATION.SEGMENTS_INTERSECT){
View Full Code Here


    InternalWayPoint check = null;
    for(int i = from+1;i<=to;i++){
      check = m_WaypointList.get(i);
      int wall = check.Cell.ArrivalWall();
      Line2D wallLine = check.Cell.m_Side[wall];
      LINE_CLASSIFICATION result = wallLine.Intersection(wayLine, null);
      if(Line2D.LINE_CLASSIFICATION.SEGMENTS_INTERSECT != result && LINE_CLASSIFICATION.B_BISECTS_A != result){
//System.out.println("Optimization between "+from+" and "+ i+" result:"+result);
        return false;
      }
    }
View Full Code Here

TOP

Related Classes of com.l2client.navigation.Line2D.LINE_CLASSIFICATION

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.