Class ConstraintImpl.Relative
java.lang.Object
codechicken.lib.gui.modular.lib.geometry.ConstraintImpl<ConstraintImpl.Relative>
codechicken.lib.gui.modular.lib.geometry.ConstraintImpl.Relative
- All Implemented Interfaces:
Constraint
- Enclosing class:
- ConstraintImpl<T extends ConstraintImpl<?>>
-
Nested Class Summary
Nested classes/interfaces inherited from class codechicken.lib.gui.modular.lib.geometry.ConstraintImpl
ConstraintImpl.Between, ConstraintImpl.BetweenDynamic, ConstraintImpl.BetweenOffset, ConstraintImpl.BetweenOffsetDynamic, ConstraintImpl.Dynamic, ConstraintImpl.Literal, ConstraintImpl.MidPoint, ConstraintImpl.MidPointDynamic, ConstraintImpl.Relative, ConstraintImpl.RelativeDynamic -
Field Summary
FieldsFields inherited from class codechicken.lib.gui.modular.lib.geometry.ConstraintImpl
axis, precise -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
relTo
-
offset
protected final double offset
-
-
Constructor Details
-
Relative
Returns the value of the provided reference plus the given offset.
-
-
Method Details
-
getImpl
protected double getImpl()- Specified by:
getImplin classConstraintImpl<ConstraintImpl.Relative>
-
getOffset
public double getOffset()
-