* Update this vector values to absolute values * @returns Reference to this object for method chaining
()
| 126 | * @returns Reference to this object for method chaining |
| 127 | */ |
| 128 | abs() { |
| 129 | return this.set( |
| 130 | this.x < 0 ? -this.x : this.x, |
| 131 | this.y < 0 ? -this.y : this.y, |
| 132 | this.z < 0 ? -this.z : this.z, |
| 133 | ); |
| 134 | } |
| 135 | |
| 136 | /** |
| 137 | * Clamp the vector value within the specified value range |
no test coverage detected