Метод operator +
-
Point<
T> other
Добавить other к this, как если бы обе точки были векторами.
Возвращает полученный "вектор" в виде точки.
Пример:
var point = const Point(10, 100) + const Point(10, 10); // Point(20, 110) point = const Point(-10, -20) + const Point(10, 100); // Point(0, 80)
Реализация
Point<T> operator +(Point<T> other) {
return Point<T>((x + other.x) as T, (y + other.y) as T);
}
© 2012 the Dart project authors
Licensed under the BSD 3-Clause "New" or "Revised" License.
https://api.dart.dev/stable/2.18.5/dart-math/Point/operator_plus.html