* If this vector's x, y or z value is less than the given vector's x, y or z * value, replace that value with the corresponding max value. * * @param {Vector3} v - The vector. * @return {Vector3} A reference to this vector.
( v )
| 591 | * @return {Vector3} A reference to this vector. |
| 592 | */ |
| 593 | max( v ) { |
| 594 | |
| 595 | this.x = Math.max( this.x, v.x ); |
| 596 | this.y = Math.max( this.y, v.y ); |
| 597 | this.z = Math.max( this.z, v.z ); |
| 598 | |
| 599 | return this; |
| 600 | |
| 601 | } |
| 602 | |
| 603 | /** |
| 604 | * If this vector's x, y or z value is greater than the max vector's x, y or z |
no outgoing calls
no test coverage detected