Class DistortedEllipsoidShape

All Implemented Interfaces:
DistortedShape, IChunkBounds, IWorldBounds

public class DistortedEllipsoidShape extends AbstractDistortedBody
  • Field Details

    • radiusX

      private final double radiusX
    • radiusY

      private final double radiusY
    • radiusZ

      private final double radiusZ
    • radiusX2

      private final double radiusX2
    • radiusY2

      private final double radiusY2
    • radiusZ2

      private final double radiusZ2
    • invRadiusX2

      private final double invRadiusX2
    • invRadiusZ2

      private final double invRadiusZ2
    • interpolation

      private final GeneralNoise.InterpolationFunction interpolation
  • Constructor Details

  • Method Details

    • getAnchor

      @Nonnull public Vector3d getAnchor(@Nonnull Vector3d vector, double tx, double ty, double tz)
    • getProjection

      public double getProjection(double x, double z)
    • isValidProjection

      public boolean isValidProjection(double t)
    • getYAt

      public double getYAt(double t)
    • getWidthAt

      public double getWidthAt(double t)
    • getHeightAt

      public double getHeightAt(double t)
    • getHeight

      protected double getHeight(int seed, double x, double z, double t, double centerY, CaveType caveType, @Nonnull ShapeDistortion distortion)
      Specified by:
      getHeight in class AbstractDistortedBody
    • toString

      @Nonnull public String toString()
      Overrides:
      toString in class Object
    • wrapPitch

      private static double wrapPitch(double pitch, double radiusY, double radiusZ)