类 Vec3

java.lang.Object
net.minecraft.world.phys.Vec3
所有已实现的接口:
Position

public class Vec3 extends Object implements Position
  • 字段详细资料

    • CODEC

      public static final com.mojang.serialization.Codec<Vec3> CODEC
    • ZERO

      public static final Vec3 ZERO
    • x

      public final double x
    • y

      public final double y
    • z

      public final double z
  • 构造器详细资料

    • Vec3

      public Vec3(double pX, double pY, double pZ)
    • Vec3

      public Vec3(org.joml.Vector3f pVector)
  • 方法详细资料

    • fromRGB24

      public static Vec3 fromRGB24(int pPacked)
    • atLowerCornerOf

      public static Vec3 atLowerCornerOf(Vec3i pToCopy)
    • atLowerCornerWithOffset

      public static Vec3 atLowerCornerWithOffset(Vec3i pToCopy, double pOffsetX, double pOffsetY, double pOffsetZ)
    • atCenterOf

      public static Vec3 atCenterOf(Vec3i pToCopy)
    • atBottomCenterOf

      public static Vec3 atBottomCenterOf(Vec3i pToCopy)
    • upFromBottomCenterOf

      public static Vec3 upFromBottomCenterOf(Vec3i pToCopy, double pVerticalOffset)
    • vectorTo

      public Vec3 vectorTo(Vec3 pVec)
    • normalize

      public Vec3 normalize()
    • dot

      public double dot(Vec3 pVec)
    • cross

      public Vec3 cross(Vec3 pVec)
    • subtract

      public Vec3 subtract(Vec3 pVec)
    • subtract

      public Vec3 subtract(double pX, double pY, double pZ)
    • add

      public Vec3 add(Vec3 pVec)
    • add

      public Vec3 add(double pX, double pY, double pZ)
    • closerThan

      public boolean closerThan(Position pPos, double pDistance)
    • distanceTo

      public double distanceTo(Vec3 pVec)
    • distanceToSqr

      public double distanceToSqr(Vec3 pVec)
    • distanceToSqr

      public double distanceToSqr(double pX, double pY, double pZ)
    • scale

      public Vec3 scale(double pFactor)
    • reverse

      public Vec3 reverse()
    • multiply

      public Vec3 multiply(Vec3 pVec)
    • multiply

      public Vec3 multiply(double pFactorX, double pFactorY, double pFactorZ)
    • offsetRandom

      public Vec3 offsetRandom(RandomSource pRandom, float pFactor)
    • length

      public double length()
    • lengthSqr

      public double lengthSqr()
    • horizontalDistance

      public double horizontalDistance()
    • horizontalDistanceSqr

      public double horizontalDistanceSqr()
    • equals

      public boolean equals(Object pOther)
      覆盖:
      equals 在类中 Object
    • hashCode

      public int hashCode()
      覆盖:
      hashCode 在类中 Object
    • toString

      public String toString()
      覆盖:
      toString 在类中 Object
    • lerp

      public Vec3 lerp(Vec3 pTo, double pDelta)
    • xRot

      public Vec3 xRot(float pPitch)
    • yRot

      public Vec3 yRot(float pYaw)
    • zRot

      public Vec3 zRot(float pRoll)
    • directionFromRotation

      public static Vec3 directionFromRotation(Vec2 pVec)
    • directionFromRotation

      public static Vec3 directionFromRotation(float pPitch, float pYaw)
    • align

      public Vec3 align(EnumSet<Direction.Axis> pAxes)
    • get

      public double get(Direction.Axis pAxis)
    • with

      public Vec3 with(Direction.Axis pAxis, double pLength)
    • relative

      public Vec3 relative(Direction pDirection, double pLength)
    • x

      public final double x()
      指定者:
      x 在接口中 Position
    • y

      public final double y()
      指定者:
      y 在接口中 Position
    • z

      public final double z()
      指定者:
      z 在接口中 Position
    • toVector3f

      public org.joml.Vector3f toVector3f()