Contents
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 -
Constructor Summary
ConstructorsConstructorDescriptionDistortedCylinderShape(org.joml.Vector3d o, org.joml.Vector3d v, double startWidth, double startHeight, double midWidth, double midHeight, double endWidth, double endHeight, double maxWidth, double maxHeight, GeneralNoise.InterpolationFunction interpolation) DistortedCylinderShape(org.joml.Vector3d o, org.joml.Vector3d v, double startWidth, double startHeight, double midWidth, double midHeight, double endWidth, double endHeight, GeneralNoise.InterpolationFunction interpolation) -
Method Summary
Modifier and TypeMethodDescriptionorg.joml.Vector3dgetAnchor(org.joml.Vector3d vector, double t, double tv, double th) Get a projected anchor point on this Shape.doublegetDistanceSq(double x, double z, double t) org.joml.Vector3dgetEnd()Get the end point of this ShapedoublegetHeightAt(double t) Get the vertical radius of the Shape at projection tdoublegetHeightComponent(double width, double width2, double dist2) doublegetProjection(double x, double z) Get the projection of a point x,z on this Shapeorg.joml.Vector3dgetStart()Get the start point of this ShapedoublegetWidthAt(double t) Get the horizontal radius of the Shape at projection tdoublegetYAt(double t) Get the y-level of the Shape's center at projection tbooleanisValidProjection(double t) Validate a projection on this ShapetoString()Methods inherited from class AbstractDistortedExtrusion
getHeightAtProjectionMethods inherited from class AbstractDistortedShape
clampPitch, getHighBoundX, getHighBoundY, getHighBoundZ, getLowBoundX, getLowBoundY, getLowBoundZMethods inherited from interface DistortedShape
getCeiling, getFloorMethods inherited from interface IChunkBounds
fractionX, fractionZ, getHighBoundX, getHighBoundZ, getHighChunkX, getHighChunkZ, getLowBoundX, getLowBoundZ, getLowChunkX, getLowChunkZ, intersectsChunk, randomX, randomZMethods inherited from interface IWorldBounds
fractionY, intersectsChunk, isValid, randomY
-
Constructor Details
-
DistortedCylinderShape
public DistortedCylinderShape(@Nonnull org.joml.Vector3d o, @Nonnull org.joml.Vector3d v, double startWidth, double startHeight, double midWidth, double midHeight, double endWidth, double endHeight, GeneralNoise.InterpolationFunction interpolation) -
DistortedCylinderShape
public DistortedCylinderShape(@Nonnull org.joml.Vector3d o, @Nonnull org.joml.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 org.joml.Vector3d getStart()Description copied from interface:DistortedShapeGet the start point of this Shape- Returns:
- the start point
-
getEnd
@Nonnull public org.joml.Vector3d getEnd()Description copied from interface:DistortedShapeGet the end point of this Shape- Returns:
- the end point
-
getAnchor
@Nonnull public org.joml.Vector3d getAnchor(@Nonnull org.joml.Vector3d vector, double t, double tv, double th) Description copied from interface:DistortedShapeGet a projected anchor point on this Shape.- Parameters:
vector- The vector to assign the point to.t- The projection in the x-axis.tv- The projection in the y-axis.th- 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:DistortedShapeGet the projection of a point x,z on this Shape- Parameters:
x- the x-coordinate to measure fromz- the z-coordinate to measure from- Returns:
- the projection
-
isValidProjection
public boolean isValidProjection(double t) Description copied from interface:DistortedShapeValidate 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:DistortedShapeGet 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:DistortedShapeGet 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:DistortedShapeGet the vertical radius of the Shape at projection t- Parameters:
t- the projection- Returns:
- the vertical radius of the Shape
-
getDistanceSq
public double getDistanceSq(double x, double z, double t) -
getHeightComponent
public double getHeightComponent(double width, double width2, double dist2) -
toString
-