Clamp the components of this vector in between the 'element-wise' minimum and maximum of 2 other vectors
| 730 | |
| 731 | // Clamp the components of this vector in between the 'element-wise' minimum and maximum of 2 other vectors |
| 732 | inline constexpr v_2d clamp(const v_2d& v1, const v_2d& v2) const |
| 733 | { |
| 734 | return this->max(v1).min(v2); |
| 735 | } |
| 736 | |
| 737 | // Linearly interpolate between this vector, and another vector, given normalised parameter 't' |
| 738 | inline constexpr v_2d lerp(const v_2d& v1, const double t) const |
no test coverage detected