Stay organized with collections
Save and categorize content based on your preferences.
GARStreetscapeGeometryRaycastResult
The result returned from |raycastStreetscapeGeometry:direction:error:| containing the transform of the hit location, the distance from the camera, and the geometry which was hit.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-14 UTC."],[[["\u003cp\u003e\u003ccode\u003eGARStreetscapeGeometryRaycastResult\u003c/code\u003e provides information about the intersection point of a raycast with streetscape geometry.\u003c/p\u003e\n"],["\u003cp\u003eIt includes the distance from the camera to the intersection, the specific geometry that was hit, and the world transform of the hit location.\u003c/p\u003e\n"],["\u003cp\u003eThis result is obtained using the \u003ccode\u003eraycastStreetscapeGeometry:direction:error:\u003c/code\u003e method.\u003c/p\u003e\n"]]],[],null,["# GARStreetscapeGeometryRaycastResult Class Reference\n\nGARStreetscapeGeometryRaycastResult\n===================================\n\nThe result returned from \\|raycastStreetscapeGeometry:direction:error:\\| containing the transform of the hit location, the distance from the camera, and the geometry which was hit.\n\nSummary\n-------\n\n### Inheritance\n\nInherits from: `NSObject`\n\n| ### Properties ||\n|---------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [distance](#distance) | `float` The distance between camera and intersection in meters. |\n| [streetscapeGeometry](#streetscapegeometry) | [GARStreetscapeGeometry](/ar/reference/ios/interface/GARStreetscapeGeometry#interface_g_a_r_streetscape_geometry)` *` The instance of [GARStreetscapeGeometry](/ar/reference/ios/interface/GARStreetscapeGeometry#interface_g_a_r_streetscape_geometry) that has an intersection with the ray. |\n| [worldTransform](#worldtransform) | `simd_float4x4` The transformation matrix that defines the raycast result's rotation, translation and scale relative to the world. |\n\nProperties\n----------\n\n### distance\n\n```transact-sql\n@property(nonatomic, readonly) float /ar/reference/ios/interface/GARStreetscapeGeometryRaycastResult#distance;\n``` \nThe distance between camera and intersection in meters. \n\n### streetscapeGeometry\n\n```transact-sql\n@property(nonatomic, readonly) /ar/reference/ios/interface/GARStreetscapeGeometry#interface_g_a_r_streetscape_geometry */ar/reference/ios/interface/GARStreetscapeGeometryRaycastResult#streetscapegeometry;\n``` \nThe instance of [GARStreetscapeGeometry](/ar/reference/ios/interface/GARStreetscapeGeometry#interface_g_a_r_streetscape_geometry) that has an intersection with the ray. \n\n### worldTransform\n\n```transact-sql\n@property(nonatomic, readonly) simd_float4x4 /ar/reference/ios/interface/GARStreetscapeGeometryRaycastResult#worldtransform;\n``` \nThe transformation matrix that defines the raycast result's rotation, translation and scale relative to the world."]]