Class TextChunkLocationDefaultImp

    • Field Detail

      • DIACRITICAL_MARKS_ALLOWED_VERTICAL_DEVIATION

        private static final float DIACRITICAL_MARKS_ALLOWED_VERTICAL_DEVIATION
        See Also:
        Constant Field Values
      • startLocation

        private final Vector startLocation
        The starting location of the chunk.
      • endLocation

        private final Vector endLocation
        The ending location of the chunk.
      • orientationVector

        private final Vector orientationVector
        Unit vector in the orientation of the chunk.
      • orientationMagnitude

        private final int orientationMagnitude
        The orientation as a scalar for quick sorting.
      • distPerpendicular

        private final int distPerpendicular
        Perpendicular distance to the orientation unit vector (i.e. the Y position in an unrotated coordinate system). We round to the nearest integer to handle the fuzziness of comparing floats.
      • distParallelStart

        private final float distParallelStart
        Distance of the start of the chunk parallel to the orientation unit vector (i.e. the X position in an unrotated coordinate system).
      • distParallelEnd

        private final float distParallelEnd
        Distance of the end of the chunk parallel to the orientation unit vector (i.e. the X position in an unrotated coordinate system).
      • charSpaceWidth

        private final float charSpaceWidth
        The width of a single space character in the font of the chunk.
    • Constructor Detail

      • TextChunkLocationDefaultImp

        public TextChunkLocationDefaultImp​(Vector startLocation,
                                           Vector endLocation,
                                           float charSpaceWidth)