One Logo Pool Ball
RealityFoundation · IOS API REFERENCE

OrientedBoundingBox

struct · iOS 17.0+ · SDK 27.1

struct OrientedBoundingBox

Representation for an oriented bounding box. Uses a combination of an axis-aligned bounding box and a rotation vector around the centroid of the said axis-aligned bounding box to represent an oriented bounding box.

Members (5)

get · iOS 17.0+

boundingBox

TypeScript
get boundingBox(): BoundingBox
Swift declaration
var boundingBox: BoundingBox

Axis aligned bounding box

set · iOS 17.0+

boundingBox

TypeScript
set boundingBox(value: BoundingBox)
Swift declaration
var boundingBox: BoundingBox

Axis aligned bounding box

init · iOS 17.0+

init

TypeScript
static init(orientation?: SDKHandle, boundingBox?: BoundingBox): OrientedBoundingBox
Swift declaration
init(orientation: simd_quatf = simd_quatf(ix: 0, iy: 0, iz: 0, r: 1), boundingBox: BoundingBox = BoundingBox.empty)
get · iOS 17.0+

orientation

TypeScript
get orientation(): SDKHandle
Swift declaration
var orientation: simd_quatf

Orientation (rotation) of the bounding box

set · iOS 17.0+

orientation

TypeScript
set orientation(value: SDKHandle)
Swift declaration
var orientation: simd_quatf

Orientation (rotation) of the bounding box

Skipped declarations

No declarations were skipped in this snapshot.

All RealityFoundation types →