getX method

double getX()

Implementation

double getX() {
  if (isParent()) {
    return 0;
  }
  return offset.dx;
}