Generic Initializer

init(clamping:)

Creates a new vector from the given vector, clamping the values of the given vector’s elements if necessary.

Declaration

init<Other>(clamping other: SIMD64<Other>) where Other : FixedWidthInteger, Other : SIMDScalar
Available when Scalar conforms to FixedWidthInteger.

Parameters

other

The vector to convert.