示例#1
0
 public static Vector getEyePos(Entity entity) {
   Vector pos = getEntityPos(entity);
   pos.setY(pos.y() + entity.getEyeHeight());
   return pos;
 }
示例#2
0
 /**
  * Set this vector to the vector defined by (x, y, z).
  *
  * @param x X-coordinate to set to
  * @param y Y-coordinate to set to
  * @param z Z-coordinate to set to
  * @return this
  */
 public Vector set(double x, double y, double z) {
   setX(x);
   setY(y);
   setZ(z);
   return this;
 }