setTopRight method

void setTopRight(
  1. Coordinate point
)

Sets top right.

Implementation

void setTopRight(Coordinate point)
{
  left = point.x - width;
  top = point.y;
}