init(center:size:)
Creates a rectangle from simd vectors that describe the center and size.
Declaration
init(center: simd_float3 = .zero, size: simd_float3)Parameters
- center:
The center of the rectangle.
- size:
The size of the rectangle.
Creates a rectangle from simd vectors that describe the center and size.
init(center: simd_float3 = .zero, size: simd_float3)The center of the rectangle.
The size of the rectangle.