Class ConstraintImpl.Between

java.lang.Object
codechicken.lib.gui.modular.lib.geometry.ConstraintImpl<ConstraintImpl.Between>
codechicken.lib.gui.modular.lib.geometry.ConstraintImpl.Between
All Implemented Interfaces:
Constraint
Direct Known Subclasses:
ConstraintImpl.BetweenOffset
Enclosing class:
ConstraintImpl<T extends ConstraintImpl<?>>

public static class ConstraintImpl.Between extends ConstraintImpl<ConstraintImpl.Between>
  • Field Details

    • start

      protected final GeoRef start
    • end

      protected final GeoRef end
    • pos

      protected final double pos
    • clamp

      protected boolean clamp
  • Constructor Details

    • Between

      public Between(GeoRef start, GeoRef end, double pos)
  • Method Details

    • getImpl

      protected double getImpl()
      Specified by:
      getImpl in class ConstraintImpl<ConstraintImpl.Between>
    • getPos

      public double getPos()
    • getStart

      public double getStart()
    • getEnd

      public double getEnd()
    • clamp

      public ConstraintImpl.Between clamp()
      Ensure the output can not go bellow the min reference or above the max reference.