Interface TwoDimensional

    • Method Detail

      • position

        TwoDimensional.Position position​(int major,
                                         int minor)
        Creates a two dimensional position in some entity (e.g. area, list of lists, list of some object with length) where the major value is the index within the outer list) and the minor value is either the index within the inner list or some amount of length in a list of objects that have length.
      • offsetToPosition

        TwoDimensional.Position offsetToPosition​(int offset,
                                                 TwoDimensional.Bias bias)
        Creates a two dimensional position in some entity (e.g. area, list of lists, list of some object with length) where the offset value is an absolute position in that entity.