Creates a new vector from the given vector, clamping the values of the given vector’s elements if necessary.
SDK
- Xcode 10.2+
Framework
- Swift Standard Library
Declaration
init<Other>(clamping other: SIMD4<Other>) where Other : Fixed Width Integer, Other : SIMDScalar
Available when Scalar conforms to Fixed Width Integer.
Parameters
other
The vector to convert.