Contents

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.