类 Vector3
java.lang.Object
committee.nova.mods.avaritia.api.util.vec.Vector3
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明$div(double d) double$tilde()$times(double d) add(double d) add(double dx, double dy, double dz) add(net.minecraft.core.BlockPos pos) add(net.minecraft.world.phys.Vec3 vec) doubleceil()copy()crossProduct(Vector3 vec) doubledoubledistanceSquared(Vector3 other) divide(double f) divide(double fx, double fy, double fz) divide(net.minecraft.core.BlockPos pos) doubledotProduct(double x1, double y1, double z1) doubledotProduct(Vector3 vec) booleanbooleanEquals method with tolerancefloor()static Vector3fromArray(double[] da) static Vector3fromArray(float[] fa) static Vector3fromAxes(double[] da) static Vector3fromAxes(float[] fa) static Vector3fromBlockPos(net.minecraft.core.BlockPos pos) static Vector3fromBlockPosCenter(net.minecraft.core.BlockPos pos) static Vector3fromEntity(net.minecraft.world.entity.Entity e) static Vector3fromEntityCenter(net.minecraft.world.entity.Entity e) static Vector3fromNBT(net.minecraft.nbt.CompoundTag tag) static Vector3fromTile(net.minecraft.world.level.block.entity.BlockEntity tile) static Vector3fromTileCenter(net.minecraft.world.level.block.entity.BlockEntity tile) static Vector3fromVec3i(net.minecraft.core.Vec3i pos) doublegetSide(int side) inthashCode()booleanisAxial()booleanisZero()doublemag()doublemultiply(double f) multiply(double fx, double fy, double fz) negate()net.minecraft.core.BlockPospos()doubleset(double d) set(double[] da) set(double x1, double y1, double z1) set(float[] fa) set(net.minecraft.core.Vec3i vec) setSide(int s, double v) subtract(double d) subtract(double dx, double dy, double dz) subtract(net.minecraft.core.BlockPos pos) subtract(net.minecraft.world.phys.Vec3 vec) double[]toArrayD()float[]toArrayF()toString()net.minecraft.world.phys.Vec3vec3()org.joml.Vector3fvector3f()org.joml.Vector4fvector4f()net.minecraft.nbt.CompoundTagwriteToNBT(net.minecraft.nbt.CompoundTag tag) @Nullable Vector3XYintercept(Vector3 end, double pz) @Nullable Vector3XZintercept(Vector3 end, double py) @Nullable Vector3YZintercept(Vector3 end, double px)
-
字段详细资料
-
ZERO
-
CENTER
-
ONE
-
X_POS
-
X_NEG
-
Y_POS
-
Y_NEG
-
Z_POS
-
Z_NEG
-
x
public double x -
y
public double y -
z
public double z
-
-
构造器详细资料
-
Vector3
public Vector3() -
Vector3
public Vector3(double d, double d1, double d2) -
Vector3
-
Vector3
public Vector3(double[] da) -
Vector3
public Vector3(float[] fa) -
Vector3
public Vector3(net.minecraft.world.phys.Vec3 vec)
-
-
方法详细资料
-
fromBlockPos
-
fromVec3i
-
fromBlockPosCenter
-
fromEntity
-
fromEntityCenter
-
fromTile
-
fromTileCenter
-
fromAxes
-
fromAxes
-
fromArray
-
fromArray
-
fromNBT
-
vec3
public net.minecraft.world.phys.Vec3 vec3() -
pos
public net.minecraft.core.BlockPos pos() -
writeToNBT
public net.minecraft.nbt.CompoundTag writeToNBT(net.minecraft.nbt.CompoundTag tag) -
vector3f
public org.joml.Vector3f vector3f() -
vector4f
public org.joml.Vector4f vector4f() -
toArrayD
public double[] toArrayD() -
toArrayF
public float[] toArrayF() -
set
-
set
-
set
-
set
-
set
-
set
-
add
-
add
-
add
-
add
-
add
-
subtract
-
subtract
-
subtract
-
subtract
-
subtract
-
multiply
-
multiply
-
multiply
-
divide
-
divide
-
divide
-
divide
-
floor
-
ceil
-
mag
public double mag() -
magSquared
public double magSquared() -
negate
-
normalize
-
distance
-
distanceSquared
-
dotProduct
public double dotProduct(double x1, double y1, double z1) -
dotProduct
-
crossProduct
-
perpendicular
-
xCrossProduct
-
zCrossProduct
-
yCrossProduct
-
scalarProject
-
project
-
rotate
-
rotate
-
angle
-
YZintercept
-
XZintercept
-
XYintercept
-
isZero
public boolean isZero() -
isAxial
public boolean isAxial() -
getSide
public double getSide(int side) -
setSide
-
hashCode
public int hashCode() -
equals
-
equalsT
Equals method with tolerance- 返回:
- true if this is equal to v within +-1E-5
-
copy
-
toString
-
translation
-
apply
-
$tilde
-
unary_$tilde
-
$plus
-
$minus
-
$times
-
$div
-
$times
-
$dot$times
-