ARKitTestResult class

A result of an intersection found during a hit-test.

Annotations
  • @JsonSerializable()

Constructors

ARKitTestResult(ARKitHitTestResultType type, double distance, Matrix4 localTransform, Matrix4 worldTransform, ARKitAnchor? anchor)

Properties

anchor ARKitAnchor?
The anchor that the hit-test intersected. An anchor will only be provided for existing plane result types.
final
distance double
The distance from the camera to the intersection in meters.
final
hashCode int
The hash code for this object.
no setterinherited
localTransform Matrix4
The transformation matrix that defines the intersection’s rotation, translation and scale relative to the anchor or nearest feature point.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type ARKitHitTestResultType
The type of the hit-test result.
final
worldTransform Matrix4
The transformation matrix that defines the intersection’s rotation, translation and scale relative to the world.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

fromJson(Map<String, dynamic> json) ARKitTestResult