Spec-Zone.ru › Dart 1

dart:html

Метод boundingBox

Rectangle boundingBox(Rectangle other)

Возвращает новый прямоугольник, который полностью содержит this и other.

Исходный код

Rectangle boundingBox(Rectangle other) {
  var right = max(this.left + this.width, other.left + other.width);
  var bottom = max(this.top + this.height, other.top + other.height);

  var left = min(this.left, other.left);
  var top = min(this.top, other.top);

  return new Rectangle(left, top, right - left, bottom - top);
}

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/1.24.3/dart-html/DomRectReadOnly/boundingBox.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API