Intelligent Assistant
Chat with our virtual assistant to get answers promptly.
Class Info |
|---|
public class ARHitResult Defines the hit point between the ray (such as a ray starting from a point on the screen) and the real world (such as a point cloud or plane). |
Qualifier and Type |
Method Name and Description |
|---|---|
| Creates a new anchor at the intersection. |
|
float |
Returns the distance between the camera and intersection, in meters. |
| Obtains the pose of an intersection, whose translation vector corresponds to the coordinates of the intersection in a world coordinate system. The rotation degrees vary according to different types of intersection points (such as with a plane or a point cloud).
|
|
| Returns the trackable object that was hit. |
Method |
|---|
public ARAnchor createAnchor() Creates an anchor at the intersection. |
Throws
Name |
Description |
|---|---|
When a fatal exception occurs, such as when the session is not created or is released before this method is called. |
|
When anchor creation failed due to insufficient resources. |
Returns
Type |
Description |
|---|---|
Returns the information about the new anchor. |
Method |
|---|
public float getDistance() Returns the distance between the camera and intersection, in meters. |
Returns
Type |
Description |
|---|---|
float |
Returns the distance between the camera and intersection. |
Method |
|---|
public ARPose getHitPose() Obtains the pose of an intersection, whose translation vector corresponds to the coordinates of the intersection in a world coordinate system. The rotation degrees vary according to different types of intersection points (such as with a plane or a point cloud).
|
Returns
Type |
Description |
|---|---|
Returns the pose of the intersection. |
Method |
|---|
public ARTrackable getTrackable() Returns the trackable object that was hit. |
Returns
Type |
Description |
|---|---|
Returns the trackable object that was hit. |