One Logo Pool Ball
Spatial · IOS API REFERENCE

Point3D

struct · iOS 16.0+ · SDK 27.1

struct Point3D

Members (48)

method · iOS 16.0+

applying

TypeScript
applying(transform: AffineTransform3D): Point3D
Swift declaration
func applying(_ transform: AffineTransform3D) -> Point3D
method · iOS 16.0+

applying

TypeScript
applying2397(transform: ProjectiveTransform3D): Point3D
Swift declaration
func applying(_ transform: ProjectiveTransform3D) -> Point3D
method · iOS 16.0+

clamped

TypeScript
clamped(rect: Rect3D): Point3D
Swift declaration
func clamped(to rect: Rect3D) -> Point3D
method · iOS 16.0+

distance

TypeScript
distance(other: Point3D): number
Swift declaration
func distance(to other: Point3D) -> Double
get · iOS 16.0+

isFinite

TypeScript
get isFinite(): boolean
Swift declaration
var isFinite: Bool { get }
get · iOS 16.0+

isNaN

TypeScript
get isNaN(): boolean
Swift declaration
var isNaN: Bool { get }
get · iOS 16.0+

isZero

TypeScript
get isZero(): boolean
Swift declaration
var isZero: Bool { get }
method · iOS 16.0+

rotated

TypeScript
rotatedBy(rotation: Rotation3D): Point3D
Swift declaration
func rotated(by rotation: Rotation3D) -> Point3D
method · iOS 16.0+

rotated

TypeScript
rotatedByAround(rotation: Rotation3D, pivot: Point3D): Point3D
Swift declaration
func rotated(by rotation: Rotation3D, around pivot: Point3D) -> Point3D
method · iOS 16.0+

rotated

TypeScript
rotatedBy92204(quaternion: SDKHandle): Point3D
Swift declaration
func rotated(by quaternion: simd_quatd) -> Point3D
method · iOS 16.0+

rotated

TypeScript
rotatedByAround74328(quaternion: SDKHandle, pivot: Point3D): Point3D
Swift declaration
func rotated(by quaternion: simd_quatd, around pivot: Point3D) -> Point3D
method · iOS 16.0+ · Deprecated in iOS 17.0

rotation

TypeScript
rotation(other: Point3D): Rotation3D
Swift declaration
func rotation(to other: Point3D) -> Rotation3D
method · iOS 16.0+

translated

TypeScript
translatedBy(offset: Vector3D): Point3D
Swift declaration
func translated(by offset: Vector3D) -> Point3D
method · iOS 16.0+

unapplying

TypeScript
unapplying(transform: AffineTransform3D): Point3D
Swift declaration
func unapplying(_ transform: AffineTransform3D) -> Point3D
method · iOS 16.0+

unapplying

TypeScript
unapplying47776(transform: ProjectiveTransform3D): Point3D
Swift declaration
func unapplying(_ transform: ProjectiveTransform3D) -> Point3D
get · iOS 16.0+

infinity

TypeScript
static get infinity(): Point3D
Swift declaration
static let infinity: Point3D
get · iOS 16.0+

zero

TypeScript
static get zero(): Point3D
Swift declaration
static let zero: Point3D
get · iOS 16.0+

vector

TypeScript
get vector(): SDKHandle
Swift declaration
var vector: simd_double3 { get set }
set · iOS 16.0+

vector

TypeScript
set vector(value: SDKHandle)
Swift declaration
var vector: simd_double3 { get set }
get · iOS 16.0+

x

TypeScript
get x(): number
Swift declaration
var x: Double { get set }
set · iOS 16.0+

x

TypeScript
set x(value: number)
Swift declaration
var x: Double { get set }
get · iOS 16.0+

y

TypeScript
get y(): number
Swift declaration
var y: Double { get set }
set · iOS 16.0+

y

TypeScript
set y(value: number)
Swift declaration
var y: Double { get set }
get · iOS 16.0+

z

TypeScript
get z(): number
Swift declaration
var z: Double { get set }
set · iOS 16.0+

z

TypeScript
set z(value: number)
Swift declaration
var z: Double { get set }
init · iOS 16.0+

init

TypeScript
static initVector(vector: SDKHandle): Point3D
Swift declaration
init(vector: simd_double3)
method · iOS 16.0+

translated

TypeScript
translatedBy46426(size: Size3D): Point3D
Swift declaration
func translated(by size: Size3D) -> Point3D

Returns the entity translated by the specified size. - Parameter size: The size structure that defines that translation.

method · iOS 18.0+

unapplying

TypeScript
unapplying97777(pose: ScaledPose3D): Point3D
Swift declaration
func unapplying(_ pose: ScaledPose3D) -> Point3D

Returns the primitive that results from unapplying a scaled pose to the primitive. - Parameter pose: The scaled pose. - Returns The transformed primitive.

method · iOS 16.0+

unapplying

TypeScript
unapplying85026(pose: Pose3D): Point3D
Swift declaration
func unapplying(_ pose: Pose3D) -> Point3D

Returns the primitive that results from applying a pose to the primitive. - Parameter pose: The pose. - Returns The transformed primitive.

get · iOS 16.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.

get · iOS 18.0+

customMirror

TypeScript
get customMirror(): SDKHandle
Swift declaration
var customMirror: Mirror { get }

The custom mirror for this instance.

init · iOS 16.0+

init

TypeScript
static initXYZ(x?: number, y?: number, z?: number): Point3D
Swift declaration
init(x: Double = 0, y: Double = 0, z: Double = 0)

Returns a point from the specified values. - Parameter x: The x component of the point. - Parameter y: The y component of the point. - Parameter z: The z component of the point.

init · iOS 16.0+

init

TypeScript
static initXYZ39734(x: number, y: number, z: number): Point3D
Swift declaration
init<T>(x: T, y: T, z: T) where T : BinaryFloatingPoint

Returns a new point from the floating-point values. - note: This function is provided as a convenience. All Spatial storage and calculations are double-precision.

method · iOS 18.0+

isApproximatelyEqual

TypeScript
isApproximatelyEqual(other: Point3D, tolerance?: number): boolean
Swift declaration
func isApproximatelyEqual(to other: Point3D, tolerance: Double = sqrt(.ulpOfOne)) -> Bool

Returns a Boolean value that indicates whether two points are equal within a specified tolerance. - Parameter other: The second point. - Parameter tolerance: The tolerance of the comparison.

get · iOS 16.0+

simd

TypeScript
get simd(): SDKHandle
Swift declaration
var simd: simd_double3 { get set }
set · iOS 16.0+

simd

TypeScript
set simd(value: SDKHandle)
Swift declaration
var simd: simd_double3 { get set }
method · iOS 16.0+

clamp

TypeScript
clamp(rect: Rect3D): void
Swift declaration
mutating func clamp(to rect: Rect3D)

Clamps the mutable point to the specified rectangle. - Parameter rect: The rectangle that defines the clamp volume.

get · iOS 16.0+

origin

TypeScript
get origin(): Point3D
Swift declaration
var origin: Point3D { get }
method · iOS 18.0+

applying

TypeScript
applying84967(scaledPose: ScaledPose3D): Point3D
Swift declaration
func applying(_ scaledPose: ScaledPose3D) -> Point3D

Returns the primitive that results from applying a scaled pose to the primitive. - Parameter pose: The scaled pose. - Returns The transformed primitive.

method · iOS 16.0+

applying

TypeScript
applying5132(pose: Pose3D): Point3D
Swift declaration
func applying(_ pose: Pose3D) -> Point3D

Returns the primitive that results from applying a pose to the primitive. - Parameter pose: The pose. - Returns The transformed primitive.

init · iOS 26.0+

init

TypeScript
static init(point: Point3DFloat): Point3D
Swift declaration
init(_ point: Point3DFloat)

Returns a double-precision point from a single-precision point.

init · iOS 16.0+

init

TypeScript
static init2995(xyz: Vector3D): Point3D
Swift declaration
init(_ xyz: Vector3D)

Returns a new point from a Spatial vector. - Parameter xyz: The source vector.

init · iOS 18.0+

init

TypeScript
static init63521(coords: SphericalCoordinates3D): Point3D
Swift declaration
init(_ coords: SphericalCoordinates3D)

Creates a new point structure that contains the spherical coordinates converted to Cartesian coordinates. - Parameter coords: The spherical coordinates.

init · iOS 16.0+

init

TypeScript
static init83816(size: Size3D): Point3D
Swift declaration
init(_ size: Size3D)

Returns a new point from a size. - Parameter size: The source size.

init · iOS 16.0+

init

TypeScript
static init81629(xyz: SDKHandle): Point3D
Swift declaration
init(_ xyz: simd_double3)

Returns a new point from a double-precision vector. - Parameter xyz: The source vector.

init · iOS 16.0+

init

TypeScript
static init22947(xyz: SDKHandle): Point3D
Swift declaration
init(_ xyz: simd_float3)

Returns a new point from a single-precision vector. - note: This function is provided as a convenience. All Spatial storage and calculations are double-precision.

init · iOS 26.0+

init

TypeScript
static init39640(source: SDKHandle): Point3D
Swift declaration
init(_ source: simd_packed_double4)

Creates a Spatial point from a simd packed vector.

init · iOS 16.0+

init

TypeScript
static init19110(): Point3D
Swift declaration
init()

Skipped declarations

No declarations were skipped in this snapshot.

All Spatial types →