We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3fbb751 commit d2bd68fCopy full SHA for d2bd68f
lib/src/api/models/vec.dart
@@ -107,6 +107,8 @@ class Vec with SerializableMixin, EquatableMixin {
107
double distanceToSq(Vec other) =>
108
pow(x - other.x, 2) + pow(y - other.y, 2).toDouble();
109
110
+ /// Combines this [Vec] with the provided [size] to create a [RectC] with
111
+ /// the same origin as this [Vec] and the size of [size].
112
RectC operator &(SizeC size) =>
113
RectC.fromLTRB(x, y, x + size.width, y + size.height);
114
0 commit comments