Initializerswift 6.0.1Swift
init(_:rounding:)
Creates a new vector from the given vector, rounding the given vector’s of elements using the specified rounding rule.
init<Other>(_ other: SIMD2<Other>, rounding rule: FloatingPointRoundingRule = .towardZero) where Other : BinaryFloatingPoint, Other : SIMDScalar
Parameters
Other members in extension
Type members
init<Other>(clamping: SIMD2<Other>
) Creates a new vector from the given vector, clamping the values of the given vector’s elements if necessary.
init<Other>(truncatingIfNeeded: SIMD2<Other>
) Creates a new vector from the given vector, truncating the bit patterns of the given vector’s elements if necessary.