Class HexPatternPoints

java.lang.Object
at.petrak.hexcasting.client.render.HexPatternPoints

public class HexPatternPoints extends Object
static points making up a hex pattern to be rendered. It's used primarily for positioning, so we keep a number of extra values here to avoid recomputing them.
  • Field Details

    • zappyPoints

      public final com.google.common.collect.ImmutableList<net.minecraft.world.phys.Vec2> zappyPoints
    • zappyPointsScaled

      public final com.google.common.collect.ImmutableList<net.minecraft.world.phys.Vec2> zappyPointsScaled
    • dotsScaled

      public final com.google.common.collect.ImmutableList<net.minecraft.world.phys.Vec2> dotsScaled
    • rangeX

      public final double rangeX
    • rangeY

      public final double rangeY
    • finalScale

      public final double finalScale
    • fullWidth

      public final double fullWidth
    • fullHeight

      public final double fullHeight
  • Method Details

    • scaleVec

      public net.minecraft.world.phys.Vec2 scaleVec(net.minecraft.world.phys.Vec2 point)
    • scaleVecs

      public List<net.minecraft.world.phys.Vec2> scaleVecs(List<net.minecraft.world.phys.Vec2> points)
    • getStaticPoints

      public static HexPatternPoints getStaticPoints(HexPatternLike patternlike, PatternSettings patSets, double seed)
      Gets the static points for the given pattern, settings, and seed. This is cached. This is used in rendering static patterns and positioning non-static patterns.