One Logo Pool Ball
RoomPlan · IOS API REFERENCE

CapturedRoom.Surface.Curve

struct · iOS 16.0+ · SDK 27.1

struct Curve

An object that represents a single curve of a surface. Each ``CapturedRoom/Surface`` instance in a captured room's surface arrays (``CapturedRoom/doors``, ``CapturedRoom/openings``, ``CapturedRoom/walls``, and ``CapturedRoom/windows``) that models a curved real-world surface contains an optional property (``RoomPlan/CapturedRoom/Surface/curve-swift.property``) of this type.

Members (4)

get · iOS 16.0+

startAngle

TypeScript
get startAngle(): _Foundation_Measurement<_Foundation_UnitAngle>
Swift declaration
var startAngle: Measurement<UnitAngle> { get }

An angle that begins the curve.

get · iOS 17.0+

center

TypeScript
get center(): SDKHandle
Swift declaration
var center: simd_float2 { get }

Center of the curve, in local coordinates. Corresponds to xz center coordinates

get · iOS 16.0+

radius

TypeScript
get radius(): number
Swift declaration
var radius: Float { get }

The radius of the curve.

get · iOS 16.0+

endAngle

TypeScript
get endAngle(): _Foundation_Measurement<_Foundation_UnitAngle>
Swift declaration
var endAngle: Measurement<UnitAngle> { get }

The angle at the end of the curve.

Skipped declarations

No declarations were skipped in this snapshot.

All RoomPlan types →