本文整理汇总了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());
}