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

    The vector to convert.

    rule

    The round rule to use when converting elements of other. The default is .towardZero.

    Other members in extension

    Type members