Class DistortedCylinderShape
java.lang.Object
com.hypixel.hytale.server.worldgen.cave.shape.distorted.AbstractDistortedShape
com.hypixel.hytale.server.worldgen.cave.shape.distorted.AbstractDistortedExtrusion
com.hypixel.hytale.server.worldgen.cave.shape.distorted.DistortedCylinderShape
- All Implemented Interfaces:
DistortedShape,IChunkBounds,IWorldBounds
- Direct Known Subclasses:
DistortedPipeShape
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final doubleprotected final doubleprotected final doubleprotected final doubleprotected final Vector3dprotected static final doubleprotected static final doubleprotected final doubleprotected final doubleprotected final Vector3dFields inherited from class com.hypixel.hytale.server.worldgen.cave.shape.distorted.AbstractDistortedExtrusion
interpolation -
Constructor Summary
ConstructorsConstructorDescriptionDistortedCylinderShape(Vector3d o, Vector3d v, double startWidth, double startHeight, double midWidth, double midHeight, double endWidth, double endHeight, double maxWidth, double maxHeight, GeneralNoise.InterpolationFunction interpolation) DistortedCylinderShape(Vector3d o, Vector3d v, double startWidth, double startHeight, double midWidth, double midHeight, double endWidth, double endHeight, GeneralNoise.InterpolationFunction interpolation) -
Method Summary
Modifier and TypeMethodDescriptionprotected static doublegetCompensationFactor(Vector3d direction) protected static doublegetDimAt(double t, double startDim, double midDim, double endDim, GeneralNoise.InterpolationFunction interpolation) doublegetDistanceSq(double x, double z, double t) getEnd()doublegetHeightAt(double t) protected static doublegetHeightCompensation(double factor) doublegetHeightComponent(double width, double width2, double dist2) doublegetProjection(double x, double z) getStart()doublegetWidthAt(double t) doublegetYAt(double t) booleanisValidProjection(double t) toString()Methods inherited from class com.hypixel.hytale.server.worldgen.cave.shape.distorted.AbstractDistortedExtrusion
getHeightAtProjectionMethods 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
getCeiling, getFloor, 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
-
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
-
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
-
getEnd
-
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) -
getDistanceSq
public double getDistanceSq(double x, double z, double t) - Specified by:
getDistanceSqin classAbstractDistortedExtrusion
-
getHeightComponent
public double getHeightComponent(double width, double width2, double dist2) - Specified by:
getHeightComponentin classAbstractDistortedExtrusion
-
toString
-
getDimAt
protected static double getDimAt(double t, double startDim, double midDim, double endDim, @Nonnull GeneralNoise.InterpolationFunction interpolation) -
getCompensationFactor
-
getHeightCompensation
protected static double getHeightCompensation(double factor)
-