XCoordinate Left() | Rectangle の左境界を返します。読み取り専用プロパティ。 |
YCoordinate top() | Rectangle の上境界を返します。読み取り専用プロパティ。 |
XCoordinate Right() | Rectangle の右境界を返します。読み取り専用プロパティ。 |
YCoordinate Bottom() | Rectangle の下境界を返します。読み取り専用プロパティ。 |
Distance Width() | Rectangle の幅を返します。読み取り専用プロパティ。 |
Distance Height() | Rectangle の高さを返します。読み取り専用プロパティ。 |
Area Area() | Rectangle の面積を返します。読み取り専用プロパティ。 |
Void Left( XCoordinate x ) | Rectangle の左境界を設定します。 |
Void top( YCoordinate y ) | Rectangle の上境界を設定します。 |
Void Right( XCoordinate x ) | Rectangle の右境界を設定します。 |
Void Bottom( YCoordinate y ) | Rectangle の下境界を設定します。 |
XCoordinate XCenter() | Rectangle の中心の X 座標を返します。 |
YCoordinate YCenter() | Rectangle の中心の Y 座標を返します。 |
Void Inflate( Distance xDist, Distance yDist ) | xDist だけ左右に、yDist だけ上下に Rectangle を拡張します。 |
XCoordinate GetX( Real ratio ) | Rectangle 内で Left と Right の間にある X 座標を Left + Width * ratio として計算します。 |
YCoordinate GetY( Real ratio ) | Rectangle 内で Top と Bottom の間にある Y 座標を Top + Height * ratio として計算します。 |
Rect GetInflated( Distance xDist, Distance yDist ) | 「拡張された」Rectangle を返します。各頂点は図形を拡張する方向に xDist と yDist だけ移動します(左上の頂点は上方および左方へ移動するなど)。元の Rectangle 自体は変更されません。 |
Logic IsEmpty() | Rectangle が画像上の空でない領域、すなわち Left < Right かつ Top < Bottom である領域に対応しているかを確認します。 |