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