Generic Initializer

init(_:rounding:)

Creates a new vector from the given vector, rounding the given vector’s of elements using the specified rounding rule. ある新しいベクターをこの与えられたベクターから作成します、与えられたベクターのもつ要素を指定された丸め規則を使って丸めます。

Declaration 宣言

init<Other>(_ other: SIMD32<Other>, rounding rule: FloatingPointRoundingRule = .towardZero) where Other : BinaryFloatingPoint, Other : SIMDScalar
Available when Scalar conforms to FixedWidthInteger. ScalarFixedWidthIntegerに準拠する場合に利用可能です。

Parameters パラメータ

other

The vector to convert. 変換するベクター。

rule

The round rule to use when converting elements of other. The default is .towardZero. otherの要素を変換する時に使う丸め規則。省略時は.towardZeroです。