FractionalOffset constructor

const FractionalOffset(
  1. double dx,
  2. double dy
)

Creates a fractional offset.

The dx and dy arguments must not be null.

Implementation

const FractionalOffset(double dx, double dy)
  : assert(dx != null),
    assert(dy != null),
    super(dx * 2.0 - 1.0, dy * 2.0 - 1.0);