Adds the specified x,y,z vector components to this vector and returns the resulting vector. Does not change this vector.
(double x, double y, double z)
| 95 | * vector. |
| 96 | */ |
| 97 | public Vec3 addVector(double x, double y, double z) |
| 98 | { |
| 99 | return new Vec3(this.xCoord + x, this.yCoord + y, this.zCoord + z); |
| 100 | } |
| 101 | |
| 102 | public Vec3 multiply(double scalar) { |
| 103 | return new Vec3(this.xCoord * scalar, this.yCoord * scalar, this.zCoord * scalar); |
no outgoing calls
no test coverage detected