One Logo Pool Ball
USDKit · IOS API REFERENCE

USDValue.Quatf

struct · iOS 27.0+ · SDK 27.1

@frozen struct Quatf

Members (10)

get · iOS 27.0+

description

TypeScript
get description(): string
Swift declaration
var 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.

init · iOS 27.0+

init

TypeScript
static initRealImaginary(real: number, imaginary: USDValue_Vec3f): USDValue_Quatf
Swift declaration
init(real: Float, imaginary: USDValue.Vec3f)

Creates a quaternion from real and imaginary components.

get · iOS 27.0+

real

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

The real (scalar) component.

set · iOS 27.0+

real

TypeScript
set real(value: number)
Swift declaration
var real: Float { get set }

The real (scalar) component.

get · iOS 27.0+

zero

TypeScript
static get zero(): USDValue_Quatf
Swift declaration
static var zero: USDValue.Quatf { get }

The zero quaternion `(0, 0, 0, 0)`.

get · iOS 27.0+

identity

TypeScript
static get identity(): USDValue_Quatf
Swift declaration
static var identity: USDValue.Quatf { get }

The identity quaternion `(real: 1, imaginary: (0, 0, 0))`.

get · iOS 27.0+

imaginary

TypeScript
get imaginary(): USDValue_Vec3f
Swift declaration
var imaginary: USDValue.Vec3f { get set }

The imaginary (vector) component.

set · iOS 27.0+

imaginary

TypeScript
set imaginary(value: USDValue_Vec3f)
Swift declaration
var imaginary: USDValue.Vec3f { get set }

The imaginary (vector) component.

get · iOS 27.0+

valueType

TypeScript
static get valueType(): USDPrim_Attribute_ValueType
Swift declaration
static var valueType: USDPrim.Attribute.ValueType { get }
init · iOS 27.0+

init

TypeScript
static init(): USDValue_Quatf
Swift declaration
init()

Creates a zero quaternion.

Skipped declarations

No declarations were skipped in this snapshot.

All USDKit types →