Class Vector3d

  • All Implemented Interfaces:
    IPosition

    public class Vector3d
    extends java.lang.Object
    implements IPosition
    • Field Detail

      • ZERO

        public static final Vector3d ZERO
      • x

        public final double x
      • y

        public final double y
      • z

        public final double z
    • Constructor Detail

      • Vector3d

        public Vector3d​(double p_i47092_1_,
                        double p_i47092_3_,
                        double p_i47092_5_)
      • Vector3d

        public Vector3d​(Vector3f p_i225900_1_)
    • Method Detail

      • fromRGB24

        public static Vector3d fromRGB24​(int p_237487_0_)
      • atLowerCornerOf

        public static Vector3d atLowerCornerOf​(Vector3i p_237491_0_)
      • atBottomCenterOf

        public static Vector3d atBottomCenterOf​(Vector3i p_237492_0_)
      • upFromBottomCenterOf

        public static Vector3d upFromBottomCenterOf​(Vector3i p_237490_0_,
                                                    double p_237490_1_)
      • normalize

        public Vector3d normalize()
      • dot

        public double dot​(Vector3d p_72430_1_)
      • subtract

        public Vector3d subtract​(double p_178786_1_,
                                 double p_178786_3_,
                                 double p_178786_5_)
      • add

        public Vector3d add​(double p_72441_1_,
                            double p_72441_3_,
                            double p_72441_5_)
      • closerThan

        public boolean closerThan​(IPosition p_237488_1_,
                                  double p_237488_2_)
      • distanceTo

        public double distanceTo​(Vector3d p_72438_1_)
      • distanceToSqr

        public double distanceToSqr​(Vector3d p_72436_1_)
      • distanceToSqr

        public double distanceToSqr​(double p_186679_1_,
                                    double p_186679_3_,
                                    double p_186679_5_)
      • scale

        public Vector3d scale​(double p_186678_1_)
      • multiply

        public Vector3d multiply​(double p_216372_1_,
                                 double p_216372_3_,
                                 double p_216372_5_)
      • length

        public double length()
      • lengthSqr

        public double lengthSqr()
      • equals

        public boolean equals​(java.lang.Object p_equals_1_)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • xRot

        public Vector3d xRot​(float p_178789_1_)
      • yRot

        public Vector3d yRot​(float p_178785_1_)
      • zRot

        public Vector3d zRot​(float p_242988_1_)
      • directionFromRotation

        public static Vector3d directionFromRotation​(Vector2f p_189984_0_)
      • directionFromRotation

        public static Vector3d directionFromRotation​(float p_189986_0_,
                                                     float p_189986_1_)
      • x

        public final double x()
        Specified by:
        x in interface IPosition
      • y

        public final double y()
        Specified by:
        y in interface IPosition
      • z

        public final double z()
        Specified by:
        z in interface IPosition