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.
Summary
Inheritance
Inherits from:
NSObject
Properties
|
distance
|
float
The distance between camera and intersection in meters.
|
streetscapeGeometry
|
|
worldTransform
|
simd_float4x4
The transformation matrix that defines the raycast result's rotation, translation and scale relative to the world.
|
Properties
distance
@property(nonatomic, readonly) float distance;
The distance between camera and intersection in meters.
The transformation matrix that defines the raycast result's rotation, translation and scale relative to the world.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-07-14 UTC.
[null,null,["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."]]