Returns a new vector that is the result of this + c @param c the constant to add @return the result of adding c to this
(double c)
| 131 | * @return the result of adding {@code c} to {@code this} |
| 132 | */ |
| 133 | public Vec add(double c) |
| 134 | { |
| 135 | Vec toRet = this.getThisSide(null); |
| 136 | toRet.mutableAdd(c); |
| 137 | return toRet; |
| 138 | } |
| 139 | |
| 140 | /** |
| 141 | * Returns a new vector that is the result of {@code this + b} |