File tree 2 files changed +20
-0
lines changed
src/main/java/de/bluecolored/bluemap/api/math
2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -160,6 +160,16 @@ public Builder addPoints(Vector3d... points) {
160
160
return this ;
161
161
}
162
162
163
+ /**
164
+ * Adds multiple points to the end of line.
165
+ * @param points the points to be added.
166
+ * @return this builder for chaining
167
+ */
168
+ public Builder addPoints (Collection <Vector3d > points ) {
169
+ this .points .addAll (points );
170
+ return this ;
171
+ }
172
+
163
173
/**
164
174
* Builds a new {@link Line} with the points set in this builder.<br>
165
175
* There need to be at least 2 points to build a {@link Line}.
Original file line number Diff line number Diff line change @@ -248,6 +248,16 @@ public Builder addPoints(Vector2d... points) {
248
248
return this ;
249
249
}
250
250
251
+ /**
252
+ * Adds multiple points to the end of line.
253
+ * @param points the points to be added.
254
+ * @return this builder for chaining
255
+ */
256
+ public Builder addPoints (Collection <Vector2d > points ) {
257
+ this .points .addAll (points );
258
+ return this ;
259
+ }
260
+
251
261
/**
252
262
* Builds a new {@link Shape} with the points set in this builder.<br>
253
263
* There need to be at least 3 points to build a {@link Shape}.
You can’t perform that action at this time.
0 commit comments