Class DistortedEllipsoidShape
java.lang.Object
com.hypixel.hytale.server.worldgen.cave.shape.distorted.AbstractDistortedShape
com.hypixel.hytale.server.worldgen.cave.shape.distorted.AbstractDistortedBody
com.hypixel.hytale.server.worldgen.cave.shape.distorted.DistortedEllipsoidShape
- All Implemented Interfaces:
DistortedShape,IChunkBounds,IWorldBounds
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final GeneralNoise.InterpolationFunctionprivate final doubleprivate final doubleprivate final doubleprivate final doubleprivate final doubleprivate final doubleprivate final doubleprivate final doubleFields inherited from class com.hypixel.hytale.server.worldgen.cave.shape.distorted.AbstractDistortedBody
o, rotation, v -
Constructor Summary
ConstructorsConstructorDescriptionDistortedEllipsoidShape(Vector3d o, Vector3d d, double yaw, double pitch, double radiusX, double radiusY, double radiusZ, GeneralNoise.InterpolationFunction interpolation) -
Method Summary
Modifier and TypeMethodDescriptionprotected doublegetHeight(int seed, double x, double z, double t, double centerY, CaveType caveType, ShapeDistortion distortion) doublegetHeightAt(double t) doublegetProjection(double x, double z) doublegetWidthAt(double t) doublegetYAt(double t) booleanisValidProjection(double t) toString()private static doublewrapPitch(double pitch, double radiusY, double radiusZ) Methods inherited from class com.hypixel.hytale.server.worldgen.cave.shape.distorted.AbstractDistortedBody
getCeiling, getEnd, getFloor, getHeightAtProjection, getStartMethods inherited from class com.hypixel.hytale.server.worldgen.cave.shape.distorted.AbstractDistortedShape
clampPitch, getHighBoundX, getHighBoundY, getHighBoundZ, getLowBoundX, getLowBoundY, getLowBoundZMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.hypixel.hytale.server.worldgen.cave.shape.distorted.DistortedShape
hasGeometryMethods inherited from interface com.hypixel.hytale.server.worldgen.util.bounds.IChunkBounds
fractionX, fractionZ, getHighBoundX, getHighBoundZ, getHighChunkX, getHighChunkZ, getLowBoundX, getLowBoundZ, getLowChunkX, getLowChunkZ, intersectsChunk, randomX, randomZMethods inherited from interface com.hypixel.hytale.server.worldgen.util.bounds.IWorldBounds
fractionY, intersectsChunk, randomY
-
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
-
-
Constructor Details
-
DistortedEllipsoidShape
public DistortedEllipsoidShape(@Nonnull Vector3d o, Vector3d d, double yaw, double pitch, double radiusX, double radiusY, double radiusZ, GeneralNoise.InterpolationFunction interpolation)
-
-
Method Details
-
getAnchor
-
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:
getHeightin classAbstractDistortedBody
-
toString
-
wrapPitch
private static double wrapPitch(double pitch, double radiusY, double radiusZ)
-