Package crazypants.enderio.conduit.geom.Offsets

Examples of crazypants.enderio.conduit.geom.Offsets.Axis


    connectorsDirty = false;

  }

  private boolean axisOfConnectionsEqual(Set<ForgeDirection> cons) {
    Axis axis = null;
    for (ForgeDirection dir : cons) {
      if(axis == null) {
        axis = Offsets.getAxisForDir(dir);
      } else {
        if(axis != Offsets.getAxisForDir(dir)) {
View Full Code Here


  }

  private static Vector3d calcOffset(ForgeDirection dir, BoundingBox bounds) {
    Vector3d res = new Vector3d();
    Vector3d center = bounds.getCenter();
    Axis axis = Offsets.getAxisForDir(dir);
    if(axis == Axis.X) {
      res.set(0, center.y - REF_TRANS.y, center.z - REF_TRANS.z);
    } else if(axis == Axis.Y) {
      res.set(center.x - REF_TRANS.x, 0, center.z - REF_TRANS.z);
    } else if(axis == Axis.Z) {
View Full Code Here

TOP

Related Classes of crazypants.enderio.conduit.geom.Offsets.Axis

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.