Package org.openpnp.model

Examples of org.openpnp.model.Location.invert()


        boardLocation = boardLocation.convertToUnits(placementLocation.getUnits());
       
        // If we are placing the bottom of the board we need to invert
        // the placement location.
        if (bl.getSide() == Side.Bottom) {
            placementLocation = placementLocation.invert(true, false, false, false);
        }

        // Create the point that represents the final placement location
        Point p = new Point(placementLocation.getX(),
                placementLocation.getY());
View Full Code Here


    }
    if (placementC.getSide() == Side.Bottom) {
//      boardLocationA = boardLocationA.invert(true, false, false, false);
      placementLocationC = placementLocationC.invert(true, false, false, false);
//      boardLocationB = boardLocationB.invert(true, false, false, false);
      placementLocationD = placementLocationD.invert(true, false, false, false);
    }
    logger.debug(String.format("locate"));
    logger.debug(String.format("%s - %s", boardLocationA,
        placementLocationA));
    logger.debug(String.format("%s - %s", boardLocationB,
View Full Code Here

        // If the placements are on the Bottom of the board we need to invert X
    Location placementALocation = placementA.getLocation();
    Location placementBLocation = placementB.getLocation();
        if (placementA.getSide() == Side.Bottom) {
            placementALocation = placementALocation.invert(true, false, false, false);
            placementBLocation = placementBLocation.invert(true, false, false, false);
        }
   
    Location boardLocation = Utils2D.calculateAngleAndOffset(
            placementALocation,
            placementBLocation,
View Full Code Here

        boardLocation = boardLocation.convertToUnits(placementLocation.getUnits());
       
        // If we are placing the bottom of the board we need to invert
        // the placement location.
        if (bl.getSide() == Side.Bottom) {
          placementLocation = placementLocation.invert(true, false, false, false);
        }

        // Create the point that represents the final placement location
        Point p = new Point(placementLocation.getX(),
            placementLocation.getY());
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.