init
TypeScriptstatic initRadians(radians: number): Angle2DFloatSwift declarationinit(radians: Float)struct · iOS 26.0+ · SDK 27.1
struct Angle2DFloatstatic initRadians(radians: number): Angle2DFloatSwift declarationinit(radians: Float)get radians(): numberSwift declarationvar radians: Floatset radians(value: number)Swift declarationvar radians: Floatstatic get zero(): Angle2DFloatSwift declarationstatic let zero: Angle2DFloatget normalized(): Angle2DFloatSwift declarationvar normalized: Angle2DFloat { get }Returns the specified angle normalized to `(-π, π]` radians (`(-180°, 180.0°]`).
get description(): stringSwift declarationvar description: String { get }A textual representation of this instance. Calling this property directly is discouraged. Instead, convert an instance of any type to a string by using the `String(describing:)` initializer. This initializer works with any type, and uses the custom `description` property for types that conform to `CustomStringConvertible`: struct Point: CustomStringConvertible { let x: Int, y: Int var description: String { return "(\(x), \(y))" } } let p = Point(x: 21, y: 30) let s = String(describing: p) print(s) // Prints "(21, 30)" The conversion of `p` to a string in the assignment to `s` uses the `Point` type's `description` property.
get customMirror(): SDKHandleSwift declarationvar customMirror: Mirror { get }The custom mirror for this instance.
static acos(x: number): Angle2DFloatSwift declarationstatic func acos(_ x: Float) -> Angle2DFloatstatic asin(x: number): Angle2DFloatSwift declarationstatic func asin(_ x: Float) -> Angle2DFloatstatic atan(x: number): Angle2DFloatSwift declarationstatic func atan(_ x: Float) -> Angle2DFloatstatic acosh(x: number): Angle2DFloatSwift declarationstatic func acosh(_ x: Float) -> Angle2DFloatstatic asinh(x: number): Angle2DFloatSwift declarationstatic func asinh(_ x: Float) -> Angle2DFloatstatic atan2(y: number, x: number): Angle2DFloatSwift declarationstatic func atan2(y: Float, x: Float) -> Angle2DFloatstatic atanh(x: number): Angle2DFloatSwift declarationstatic func atanh(_ x: Float) -> Angle2DFloatstatic initDegrees(degrees: number): Angle2DFloatSwift declarationinit(degrees: Float)static initDegrees77438(degrees: number): Angle2DFloatSwift declarationinit<T>(degrees: T) where T : BinaryFloatingPointReturns a new angle from floating-point degrees. - note: This function is provided as a convenience. All Spatial storage and calculations are single-precision.
get degrees(): numberSwift declarationvar degrees: Float { get }static degrees52837(degrees: number): Angle2DFloatSwift declarationstatic func degrees(_ degrees: Float) -> Angle2DFloatstatic initRadians37613(radians: number): Angle2DFloatSwift declarationinit<T>(radians: T) where T : BinaryFloatingPointReturns a new angle from floating-point radians. - note: This function is provided as a convenience. All Spatial storage and calculations are single-precision.
static radians36284(radians: number): Angle2DFloatSwift declarationstatic func radians(_ radians: Float) -> Angle2DFloatstatic init(angle: Angle2D): Angle2DFloatSwift declarationinit(_ angle: Angle2D)Returns a single-precision angle from a double-precision angle.
static initRadians68418(radians: number): Angle2DFloatSwift declarationinit(radians: Float)static init40000(): Angle2DFloatSwift declarationinit()No declarations were skipped in this snapshot.