ARFrameUpdate class
One sampled AR frame, delivered while per-frame updates are enabled.
Carries what a Flutter overlay needs to draw annotations that stay glued to the world: the hit under the reticle, plus the camera matrices required to project world positions back to screen pixels.
Constructors
- ARFrameUpdate({required ARHitTestResult? reticleHit, required Matrix4 viewMatrix, required Matrix4 projectionMatrix, required Size viewport})
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- projectionMatrix → Matrix4
-
Camera → clip space.
final
- reticleHit → ARHitTestResult?
-
What the reticle is currently aimed at, or null when nothing trackable
is under it.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- viewMatrix → Matrix4
-
World → camera space.
final
- viewport → Size
-
Size of the AR surface in device pixels.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
project(
Vector3 world) → Offset? - Projects a world position to a pixel coordinate within viewport.
-
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) → ARFrameUpdate?