Class AngleEdgeSelector

java.lang.Object
com.hypixel.hytale.builtin.hytalegenerator.graph.edgeselectors.EdgeSelector
com.hypixel.hytale.builtin.hytalegenerator.graph.edgeselectors.AngleEdgeSelector

public class AngleEdgeSelector extends EdgeSelector
  • Constructor Details

  • Method Details

    • isSelected

      public boolean isSelected(@Nonnull GraphSpace graphSpace, @Nonnull GraphSpace.Edge edge)
      Specified by:
      isSelected in class EdgeSelector
    • getInteractionRange

      public double getInteractionRange(double longestConnection)
      Description copied from class: EdgeSelector
      Returns the read range of this selector, measured from one endpoint of the processed edge. The range must cover the farthest graph state this selector reads, from either endpoint. The other endpoint can be up to longestConnection away. Reads that touch it, or that reach beyond it, must include that distance in the returned range. If the declared range is too small, generation near region borders is nondeterministic.
      Specified by:
      getInteractionRange in class EdgeSelector
      Parameters:
      longestConnection - the longest edge length that can exist in the graph at this pass