FractionalOffset constructor

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

Creates a fractional offset.

Implementation

const FractionalOffset(double dx, double dy) : super(dx * 2 - 1, 1 - dy * 2);