return grConvert(context, new Point(Double.NaN, y), from, to).getY();
}
private static Point grConvert(Context context, Point point, int from, int to) {
GraphicsDevice active = context.getSession().getSingleton(GraphicsDevices.class).getActive();
Point device = toDeviceCoordinates(active, point, from);
return fromDeviceCoordinates(active, device, to);
}