Class BranchEvaluator
java.lang.Object
com.hypixel.hytale.procedurallib.logic.cell.evaluator.BranchEvaluator
- All Implemented Interfaces:
PointEvaluator
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final doubleprotected static final intprotected static final intprotected static final intprotected final BranchEvaluator.Directionprotected final doubleprotected final CellJitterprotected final CellPointFunctionprotected static final intprotected static final Vector2i[] -
Constructor Summary
ConstructorsConstructorDescriptionBranchEvaluator(CellDistanceFunction parentFunction, CellPointFunction linePointFunction, BranchEvaluator.Direction direction, CellJitter jitter, double branchScale) -
Method Summary
Modifier and TypeMethodDescriptionprotected static booleancheckBounds(double x, double y, double ax, double ay, double bx, double by, double thickness) voidevalPoint(int seed, double x, double y, double z, int cellHash, int cellX, int cellY, int cellZ, double cellPointX, double cellPointY, double cellPointZ, ResultBuffer.ResultBuffer3d buffer) voidevalPoint(int seed, double x, double y, int hashA, int cax, int cay, double ax, double ay, ResultBuffer.ResultBuffer2d buffer) voidevalPoint2(int seed, double x, double y, double z, int cellHash, int cellX, int cellY, int cellZ, double cellPointX, double cellPointY, double cellPointZ, ResultBuffer.ResultBuffer3d buffer) voidevalPoint2(int seed, double x, double y, int cellHash, int xi, int yi, double vecX, double vecY, ResultBuffer.ResultBuffer2d buffer) protected static intgetConnectionX(BranchEvaluator.Direction direction, int regionHash, double regionCoord, int cellHash, double cellCoord) protected static intgetConnectionY(BranchEvaluator.Direction direction, int regionHash, double regionCoord, int cellHash, double cellCoord) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.hypixel.hytale.procedurallib.logic.cell.evaluator.PointEvaluator
collectPoint
-
Field Details
-
CARDINAL_MASK
protected static final int CARDINAL_MASK- See Also:
-
CARDINAL_MASK_RESULT_X
protected static final int CARDINAL_MASK_RESULT_X- See Also:
-
CARDINAL_MASK_RESULT_Y
protected static final int CARDINAL_MASK_RESULT_Y- See Also:
-
RANDOM_DIRECTION_MASK
protected static final int RANDOM_DIRECTION_MASK- See Also:
-
RANDOM_DIRECTIONS
-
pointFunction
-
direction
-
jitter
-
branch2parentScale
protected final double branch2parentScale -
invLineNormalization
protected final double invLineNormalization
-
-
Constructor Details
-
BranchEvaluator
public BranchEvaluator(@Nonnull CellDistanceFunction parentFunction, @Nonnull CellPointFunction linePointFunction, BranchEvaluator.Direction direction, CellJitter jitter, double branchScale)
-
-
Method Details
-
getJitter
- Specified by:
getJitterin interfacePointEvaluator
-
evalPoint
public void evalPoint(int seed, double x, double y, int hashA, int cax, int cay, double ax, double ay, @Nonnull ResultBuffer.ResultBuffer2d buffer) - Specified by:
evalPointin interfacePointEvaluator
-
evalPoint2
public void evalPoint2(int seed, double x, double y, int cellHash, int xi, int yi, double vecX, double vecY, ResultBuffer.ResultBuffer2d buffer) - Specified by:
evalPoint2in interfacePointEvaluator
-
evalPoint
public void evalPoint(int seed, double x, double y, double z, int cellHash, int cellX, int cellY, int cellZ, double cellPointX, double cellPointY, double cellPointZ, ResultBuffer.ResultBuffer3d buffer) - Specified by:
evalPointin interfacePointEvaluator
-
evalPoint2
public void evalPoint2(int seed, double x, double y, double z, int cellHash, int cellX, int cellY, int cellZ, double cellPointX, double cellPointY, double cellPointZ, ResultBuffer.ResultBuffer3d buffer) - Specified by:
evalPoint2in interfacePointEvaluator
-
getConnectionX
protected static int getConnectionX(BranchEvaluator.Direction direction, int regionHash, double regionCoord, int cellHash, double cellCoord) -
getConnectionY
protected static int getConnectionY(BranchEvaluator.Direction direction, int regionHash, double regionCoord, int cellHash, double cellCoord) -
checkBounds
protected static boolean checkBounds(double x, double y, double ax, double ay, double bx, double by, double thickness)
-