One Logo Pool Ball
Spatial · IOS API REFERENCE

Ray3DFloat

struct · iOS 26.0+ · SDK 27.1

struct Ray3DFloat

Members (32)

method · iOS 26.0+

intersects

TypeScript
intersectsSphereOriginSphereRadius(sphereOrigin: Point3DFloat, sphereRadius: number): boolean
Swift declaration
func intersects(sphereOrigin: Point3DFloat, sphereRadius: Float) -> Bool
method · iOS 26.0+

translated

TypeScript
translated(offset: Vector3DFloat): Ray3DFloat
Swift declaration
func translated(by offset: Vector3DFloat) -> Ray3DFloat
get · iOS 26.0+

direction

TypeScript
get direction(): Vector3DFloat
Swift declaration
var direction: Vector3DFloat
set · iOS 26.0+

direction

TypeScript
set direction(value: Vector3DFloat)
Swift declaration
var direction: Vector3DFloat
get · iOS 26.0+

origin

TypeScript
get origin(): Point3DFloat
Swift declaration
var origin: Point3DFloat
set · iOS 26.0+

origin

TypeScript
set origin(value: Point3DFloat)
Swift declaration
var origin: Point3DFloat
get · iOS 17.0+

infinity

TypeScript
static get infinity(): Ray3DFloat
Swift declaration
static let infinity: Ray3DFloat
get · iOS 17.0+

zero

TypeScript
static get zero(): Ray3DFloat
Swift declaration
static let zero: Ray3DFloat
init · iOS 26.0+

init

TypeScript
static initOriginDirection(origin: Point3DFloat, direction: Vector3DFloat): Ray3DFloat
Swift declaration
init(origin: Point3DFloat, direction: Vector3DFloat)

Creates a ray from Spatial primitives that describe the origin and direction. - Parameter origin: The origin of the ray. - Parameter direction: The direction of the ray. - note: This function normalizes the direction vector.

method · iOS 26.0+

intersects

TypeScript
intersects(rect: Rect3DFloat): boolean
Swift declaration
func intersects(_ rect: Rect3DFloat) -> Bool

Returns `true` if the the ray intersects the specified rectangle. - Parameter rect: The second primitive.

method · iOS 26.0+

unapplying

TypeScript
unapplying(scaledPose: ScaledPose3DFloat): Ray3DFloat
Swift declaration
func unapplying(_ scaledPose: ScaledPose3DFloat) -> Ray3DFloat

Returns a ray that's transformed by the inverse of the specified scaled pose. - Parameter pose: The scaled pose. - Returns The transformed ray. This function rotates the ray's direction by the pose's rotation and offsets the ray's origin by the pose's position.

method · iOS 26.0+

unapplying

TypeScript
unapplying28203(transform: AffineTransform3DFloat): Ray3DFloat
Swift declaration
func unapplying(_ transform: AffineTransform3DFloat) -> Ray3DFloat

Returns a ray that's transformed by the inverse of the specified affine transform. - Parameter transform: The affine transform. - Returns The transformed ray. This function applies the transform to the ray's origin and direction.

method · iOS 26.0+

unapplying

TypeScript
unapplying42960(transform: ProjectiveTransform3DFloat): Ray3DFloat
Swift declaration
func unapplying(_ transform: ProjectiveTransform3DFloat) -> Ray3DFloat

Returns a ray that's transformed by the inverse of the specified projective transform. - Parameter transform: The projective transform. - Returns The transformed ray. This function applies the transform to the ray's origin and direction.

method · iOS 26.0+

unapplying

TypeScript
unapplying89563(pose: Pose3DFloat): Ray3DFloat
Swift declaration
func unapplying(_ pose: Pose3DFloat) -> Ray3DFloat

Returns a ray that's transformed by the inverse of the specified pose. - Parameter pose: The pose. - Returns The transformed ray. This function rotates the ray's direction by the pose's rotation and offsets the ray's origin by the pose's position.

get · iOS 26.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 26.0+

customMirror

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

The custom mirror for this instance.

method · iOS 26.0+

apply

TypeScript
apply(pose: Pose3DFloat): void
Swift declaration
mutating func apply(_ pose: Pose3DFloat)

Applies a pose. - Parameter pose: The pose. This function rotate's the ray's direction by the pose's rotation and sets the ray's origin to the pose's position.

get · iOS 26.0+

isNaN

TypeScript
get isNaN(): boolean
Swift declaration
var isNaN: Bool { get }

A Boolean value that indicates whether all of the values of the ray are finite.

get · iOS 26.0+

isZero

TypeScript
get isZero(): boolean
Swift declaration
var isZero: Bool { get }

A Boolean value that indicates whether all of the values of the ray are zero.

init · iOS 26.0+

init

TypeScript
static initOriginDirection19664(origin: Point3DFloat, direction: Vector3DFloat): Ray3DFloat
Swift declaration
init(origin: Point3DFloat = .zero, direction: Vector3DFloat)

Creates a ray from Spatial primitives that describe the origin and direction. - Parameter origin: The origin of the ray. - Parameter direction: The direction of the ray. - note: This function normalizes the direction vector.

init · iOS 26.0+

init

TypeScript
static initOriginDirection16564(origin: SDKHandle, direction: SDKHandle): Ray3DFloat
Swift declaration
init(origin: simd_float3 = .zero, direction: simd_float3)

Creates a ray from single-precision simd vectors that describe the origin and direction. - Parameter origin: The origin of the ray. - Parameter direction: direction of the rectangle. - note: This function normalizes the direction vector.

method · iOS 26.0+

rotated

TypeScript
rotatedByAround(rotation: Rotation3DFloat, pivot: Point3DFloat): Ray3DFloat
Swift declaration
func rotated(by rotation: Rotation3DFloat, around pivot: Point3DFloat) -> Ray3DFloat

Returns a ray that's rotated by the specified rotation around a specified pivot. - Parameter rotation: The rotation. - Parameter pivot: The center of rotation.

method · iOS 26.0+

rotated

TypeScript
rotatedByAround87476(quaternion: SDKHandle, pivot: Point3DFloat): Ray3DFloat
Swift declaration
func rotated(by quaternion: simd_quatf, around pivot: Point3DFloat) -> Ray3DFloat

Returns a ray that's rotated by the specified rotation around a specified pivot. - Parameter quaternion: The quaternion that defines the rotation. - Parameter pivot: The center of rotation.

method · iOS 26.0+

rotated

TypeScript
rotatedBy(rotation: Rotation3DFloat): Ray3DFloat
Swift declaration
func rotated(by rotation: Rotation3DFloat) -> Ray3DFloat

Returns a ray that's rotated by the specified rotation. - Parameter rotation: The rotation. - Returns A ray with a direction that's rotated by the specified rotation.

method · iOS 26.0+

rotated

TypeScript
rotatedBy52468(quaternion: SDKHandle): Ray3DFloat
Swift declaration
func rotated(by quaternion: simd_quatf) -> Ray3DFloat

Returns a ray that's rotated by the specified quaternion. - Parameter quaternion: The quaternion that defines the rotation. - Returns A ray with a direction that's rotated by the specified quaternion.

method · iOS 26.0+

applying

TypeScript
applying(scaledPose: ScaledPose3DFloat): Ray3DFloat
Swift declaration
func applying(_ scaledPose: ScaledPose3DFloat) -> Ray3DFloat

Returns a ray that's transformed by the specified scaled pose. - Parameter pose: The scaled pose. - Returns The transformed ray. This function rotates the ray's direction by the pose's rotation and offsets the ray's origin by the pose's position.

method · iOS 26.0+

applying

TypeScript
applying17461(transform: AffineTransform3DFloat): Ray3DFloat
Swift declaration
func applying(_ transform: AffineTransform3DFloat) -> Ray3DFloat

Returns a ray that's transformed by the specified affine transform. - Parameter transform: The affine transform. - Returns The transformed ray. This function applies the transform to the ray's origin and direction.

method · iOS 26.0+

applying

TypeScript
applying92642(transform: ProjectiveTransform3DFloat): Ray3DFloat
Swift declaration
func applying(_ transform: ProjectiveTransform3DFloat) -> Ray3DFloat

Returns a ray that's transformed by the specified projective transform. - Parameter transform: The projective transform. - Returns The transformed ray. This function applies the transform to the ray's origin and direction.

method · iOS 26.0+

applying

TypeScript
applying77189(pose: Pose3DFloat): Ray3DFloat
Swift declaration
func applying(_ pose: Pose3DFloat) -> Ray3DFloat

Returns a ray that's transformed by the specified pose. - Parameter pose: The pose. - Returns The transformed ray. This function rotates the ray's direction by the pose's rotation and offsets the ray's origin by the pose's position.

get · iOS 26.0+

isFinite

TypeScript
get isFinite(): boolean
Swift declaration
var isFinite: Bool { get }

A Boolean value that indicates whether all of the values of the ray are finite.

init · iOS 26.0+

init

TypeScript
static init(ray: Ray3D): Ray3DFloat
Swift declaration
init(_ ray: Ray3D)

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

init · iOS 26.0+

init

TypeScript
static init55560(): Ray3DFloat
Swift declaration
init()

Skipped declarations

No declarations were skipped in this snapshot.

All Spatial types →