Contents
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 -
Constructor Summary
ConstructorsConstructorDescriptionDistortedEllipsoidShape(org.joml.Vector3d o, org.joml.Vector3d d, double yaw, double pitch, double radiusX, double radiusY, double radiusZ, GeneralNoise.InterpolationFunction interpolation) -
Method Summary
Modifier and TypeMethodDescriptionorg.joml.Vector3dgetAnchor(org.joml.Vector3d vector, double tx, double ty, double tz) Get a projected anchor point on this Shape.doublegetHeightAt(double t) Get the vertical radius of the Shape at projection tdoublegetProjection(double x, double z) Get the projection of a point x,z on 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 AbstractDistortedBody
getCeiling, getEnd, getFloor, getHeightAtProjection, getStartMethods inherited from class AbstractDistortedShape
clampPitch, getHighBoundX, getHighBoundY, getHighBoundZ, getLowBoundX, getLowBoundY, getLowBoundZMethods 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
-
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:DistortedShapeGet 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: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
-
toString
-