Class PrecisionPointList

java.lang.Object
org.eclipse.draw2d.geometry.PointList
org.eclipse.draw2d.geometry.PrecisionPointList
All Implemented Interfaces:
Serializable, Translatable

public final class PrecisionPointList extends PointList
A PointList implementation using floating point values which are truncated into the inherited integer fields. The use of floating point prevents rounding errors from accumulating. EXPERIMENTAL This class has been added as part of a work in progress and there is no guarantee that this API will remain unchanged. This is likely to not function properly outside some very specific use-cases.
Since:
3.21
See Also:
@noreference
This class is not intended to be referenced by clients.
  • Constructor Details

    • PrecisionPointList

      public PrecisionPointList(int[] points)
      Constructs a PrecisionPointList with the given points.
      Parameters:
      points - int array where two consecutive ints form the coordinates of a point
    • PrecisionPointList

      public PrecisionPointList(PointList points)
      Constructs a PrecisionPointList with the given points.
      Parameters:
      points - PointList from which the initial values are taken
  • Method Details