Skip to content

Commit

Permalink
fixed files form Math #9
Browse files Browse the repository at this point in the history
  • Loading branch information
tdurieux committed Mar 7, 2017
1 parent d8eb1ea commit 4c91136
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ public void reset(final Vector3D p1, final Vector3D p2) throws MathIllegalArgume
* @return a new instance, with reversed direction
*/
public Line revert() {
final Line reverted = new Line(zero, zero.subtract(direction));
final Line reverted = new Line(this);
reverted.direction = reverted.direction.negate();
return reverted;
}

Expand Down

0 comments on commit 4c91136

Please sign in to comment.