本文整理匯總了Java中com.flowpowered.math.vector.Vector3d.getX方法的典型用法代碼示例。如果您正苦於以下問題:Java Vector3d.getX方法的具體用法?Java Vector3d.getX怎麽用?Java Vector3d.getX使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類com.flowpowered.math.vector.Vector3d
的用法示例。
在下文中一共展示了Vector3d.getX方法的11個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: getLoc
import com.flowpowered.math.vector.Vector3d; //導入方法依賴的package包/類
@Override
public Loc getLoc() {
Location<World> location = this.player.getLocation();
Vector3d rotation = this.player.getRotation();
Loc loc = new Loc(this.player.getWorld().getUniqueId(), location.getX(), location.getY(), location.getZ(), (float) rotation.getY(), (float) rotation.getX());
return loc;
}
示例2: Vector3dView
import com.flowpowered.math.vector.Vector3d; //導入方法依賴的package包/類
public Vector3dView(Vector3d value) {
super(value);
this.x = value.getX();
this.y = value.getY();
this.z = value.getZ();
}
示例3: setPosition
import com.flowpowered.math.vector.Vector3d; //導入方法依賴的package包/類
@Override
public void setPosition(Vector3d position) {
this.x = (int)(position.getX() * 8);
this.y = (int)(position.getY() * 8);
this.z = (int)(position.getZ() * 8);
}
示例4: setPosition
import com.flowpowered.math.vector.Vector3d; //導入方法依賴的package包/類
@Override
public void setPosition(Vector3d position) {
this.posX = (int)(position.getX() * 8);
this.posY = (int)(position.getY() * 8);
this.posZ = (int)(position.getZ() * 8);
}
示例5: setPosition
import com.flowpowered.math.vector.Vector3d; //導入方法依賴的package包/類
@Override
public void setPosition(Vector3d position) {
this.x = position.getX();
this.y = position.getY();
this.z = position.getZ();
}
示例6: setPosition
import com.flowpowered.math.vector.Vector3d; //導入方法依賴的package包/類
@Override
public void setPosition(Vector3d position) {
this.posX = position.getX();
this.posY = position.getY();
this.posZ = position.getZ();
}
示例7: setRotation
import com.flowpowered.math.vector.Vector3d; //導入方法依賴的package包/類
@Override
public void setRotation(Vector3d rotation) {
pitch = (float)rotation.getX();
yaw = (float)rotation.getY();
}
示例8: setPosition
import com.flowpowered.math.vector.Vector3d; //導入方法依賴的package包/類
@Override
public void setPosition(Vector3d position) {
x = position.getX();
y = position.getY();
z = position.getZ();
}
示例9: convertToBukkitVector
import com.flowpowered.math.vector.Vector3d; //導入方法依賴的package包/類
private Vector convertToBukkitVector(Vector3d vector3d) {
return new Vector(vector3d.getX(), vector3d.getY(), vector3d.getZ());
}
示例10: LocationTag
import com.flowpowered.math.vector.Vector3d; //導入方法依賴的package包/類
public LocationTag(Vector3d location) {
this(location.getX(), location.getY(), location.getZ());
}
示例11: of
import com.flowpowered.math.vector.Vector3d; //導入方法依賴的package包/類
public static Location3D of(Vector3d vector) {
return new Location3D(vector.getX(), vector.getY(), vector.getZ());
}