Contents

init(origin:size:)

Creates a rectangle with the specified origin and the specified size from Spatial vectors.

Declaration

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

Parameters

  • origin:

    A vector that specifies the rectangle’s origin.

  • size:

    A vector that specifies the rectangle’s size.

See Also

Creating a 3D rectangle structure