Skip to content

Commit d2bd68f

Browse files
committed
Document FreeformModel, Vec, and clean up dart analysis warnings. Run dart format.
1 parent 3fbb751 commit d2bd68f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/src/api/models/vec.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ class Vec with SerializableMixin, EquatableMixin {
107107
double distanceToSq(Vec other) =>
108108
pow(x - other.x, 2) + pow(y - other.y, 2).toDouble();
109109

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].
110112
RectC operator &(SizeC size) =>
111113
RectC.fromLTRB(x, y, x + size.width, y + size.height);
112114

0 commit comments

Comments
 (0)