Class DistortedEllipsoidShape

All Implemented Interfaces:
DistortedShape, IChunkBounds, IWorldBounds

public class DistortedEllipsoidShape extends AbstractDistortedBody
  • Constructor Details

    • DistortedEllipsoidShape

      public DistortedEllipsoidShape(@Nonnull org.joml.Vector3d o, org.joml.Vector3d d, double yaw, double pitch, double radiusX, double radiusY, double radiusZ, GeneralNoise.InterpolationFunction interpolation)
  • Method Details

    • getAnchor

      @Nonnull public org.joml.Vector3d getAnchor(@Nonnull org.joml.Vector3d vector, double tx, double ty, double tz)
      Description copied from interface: DistortedShape
      Get a projected anchor point on this Shape.
      Parameters:
      vector - The vector to assign the point to.
      tx - The projection in the x-axis.
      ty - The projection in the y-axis.
      tz - The projection in the z-axis.
      Returns:
      The resulting anchor point for the projection.
    • getProjection

      public double getProjection(double x, double z)
      Description copied from interface: DistortedShape
      Get the projection of a point x,z on this Shape
      Parameters:
      x - the x-coordinate to measure from
      z - the z-coordinate to measure from
      Returns:
      the projection
    • isValidProjection

      public boolean isValidProjection(double t)
      Description copied from interface: DistortedShape
      Validate a projection on this Shape
      Parameters:
      t - the project
      Returns:
      True if a valid projection
    • getYAt

      public double getYAt(double t)
      Description copied from interface: DistortedShape
      Get the y-level of the Shape's center at projection t
      Parameters:
      t - the projection
      Returns:
      the y-level of the shape's center
    • getWidthAt

      public double getWidthAt(double t)
      Description copied from interface: DistortedShape
      Get the horizontal radius of the Shape at projection t
      Parameters:
      t - the projection
      Returns:
      the horizontal radius of the Shape
    • getHeightAt

      public double getHeightAt(double t)
      Description copied from interface: DistortedShape
      Get the vertical radius of the Shape at projection t
      Parameters:
      t - the projection
      Returns:
      the vertical radius of the Shape
    • toString

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