Class DistortedCylinderShape

All Implemented Interfaces:
DistortedShape, IChunkBounds, IWorldBounds
Direct Known Subclasses:
DistortedPipeShape

public class DistortedCylinderShape extends AbstractDistortedExtrusion
  • Field Details

    • PITCH_COMPENSATION_MIN

      protected static final double PITCH_COMPENSATION_MIN
      See Also:
    • PITCH_COMPENSATION_RANGE

      protected static final double PITCH_COMPENSATION_RANGE
      See Also:
    • o

      @Nonnull protected final Vector3d o
    • v

      @Nonnull protected final Vector3d v
    • startWidth

      protected final double startWidth
    • startHeight

      protected final double startHeight
    • midWidth

      protected final double midWidth
    • midHeight

      protected final double midHeight
    • endWidth

      protected final double endWidth
    • endHeight

      protected final double endHeight
  • Constructor Details

    • DistortedCylinderShape

      public DistortedCylinderShape(@Nonnull Vector3d o, @Nonnull Vector3d v, double startWidth, double startHeight, double midWidth, double midHeight, double endWidth, double endHeight, GeneralNoise.InterpolationFunction interpolation)
    • DistortedCylinderShape

      public DistortedCylinderShape(@Nonnull Vector3d o, @Nonnull Vector3d v, double startWidth, double startHeight, double midWidth, double midHeight, double endWidth, double endHeight, double maxWidth, double maxHeight, GeneralNoise.InterpolationFunction interpolation)
  • Method Details

    • getStart

      @Nonnull public Vector3d getStart()
    • getEnd

      @Nonnull public Vector3d getEnd()
    • getAnchor

      @Nonnull public Vector3d getAnchor(@Nonnull Vector3d vector, double t, double tv, double th)
    • 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)
    • getDistanceSq

      public double getDistanceSq(double x, double z, double t)
      Specified by:
      getDistanceSq in class AbstractDistortedExtrusion
    • getHeightComponent

      public double getHeightComponent(double width, double width2, double dist2)
      Specified by:
      getHeightComponent in class AbstractDistortedExtrusion
    • toString

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

      protected static double getDimAt(double t, double startDim, double midDim, double endDim, @Nonnull GeneralNoise.InterpolationFunction interpolation)
    • getCompensationFactor

      protected static double getCompensationFactor(@Nonnull Vector3d direction)
    • getHeightCompensation

      protected static double getHeightCompensation(double factor)