Copies another vector @param vec The other vector @return the same vector
(@NotNull Vector vec)
| 143 | * @return the same vector |
| 144 | */ |
| 145 | @NotNull |
| 146 | public Vector copy(@NotNull Vector vec) { |
| 147 | x = vec.x; |
| 148 | y = vec.y; |
| 149 | z = vec.z; |
| 150 | return this; |
| 151 | } |
| 152 | |
| 153 | /** |
| 154 | * Gets the magnitude of the vector, defined as sqrt(x^2+y^2+z^2). The |
no outgoing calls
no test coverage detected