FractionalOffset constructor

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

Creates a fractional offset.

Implementation

const FractionalOffset(double dx, double dy)
  : super(dx * 2.0 - 1.0, dy * 2.0 - 1.0);