Contents

init(origin:size:)

Creates a rectangle at the specified origin with the specified size from single-precision vectors.

Declaration

init(origin: simd_float3 = .zero, size: simd_float3)

Parameters

  • origin:

    A single-precision vector that specifies the rectangle’s origin.

  • size:

    A single-precision vector that specifies the rectangle’s size.

See Also

Creating a 3D rectangle structure