Package com.forgeessentials.util.vector

Examples of com.forgeessentials.util.vector.Vector2.normalize()


  }

  public static Vector2 getDirectionVector(Point center, EntityPlayerMP player)
  {
    Vector2 vecp = new Vector2(center.getX() - player.posX, center.getZ() - player.posZ);
    vecp.normalize();
    vecp.multiply(-1);
    return vecp;
  }

  public static int getDistanceRound(Point center, EntityPlayer player)
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.