init(center:size:)
Creates a rectangle with the specified center and the specified size from single-precision vectors.
Declaration
init(center: simd_float3 = .zero, size: simd_float3)Parameters
- center:
A single-precision vector that specifies the rectangle’s center.
- size:
A single-precision vector that specifies the rectangle’s size.