graphPointToPositionPercent method

Coordinate graphPointToPositionPercent()

Computes position percent coordinate from graph coordinate, where (0,0) is centre.

  • (0, 0) becomes (50%, 50%), (-1, -1) becomes (0%, 0%), (1, 1), becomes(100%, 100%).

Implementation

Coordinate graphPointToPositionPercent()
{
  return new Coordinate( graphPointAxisToPositionPercent(x), graphPointAxisToPositionPercent(y) );
}