Tociclibs Line2D - why does calling .offsetAndGrowBy() and .scale() draw the new line?
in
Contributed Library Questions
•
1 year ago
Hi --
This is a chunk of code from a larger project:
- void buildJoint() {
- for (innerVertexEdge ive : V.innerVertexEdges) {
- Line2D thisLine= ive.getLine();
- Vec2D thisNorm=thisLine.getDirection();
- Line2D newLine=thisLine.offsetAndGrowBy(5, 5, thisNorm);
- lines.add(newLine);
- }
I'm really surprised that it does in fact draw the line.
Is there a way to have it simply return a Line2D and not draw it?
Thanks!
1