ArPose class

Unified 3D pose (position + rotation) across ARKit and ARCore.

ARKit returns Matrix4 worldTransform → extract column(3) for position. ARCore returns Vector3 translation + Vector4 rotation directly. This class normalizes both to the same representation.

Constructors

ArPose({required Vector3 position, required Quaternion rotation})
const
ArPose.fromMatrix4(Matrix4 transform)
Create from ARKit Matrix4 worldTransform.
factory
ArPose.fromTranslationRotation(Vector3 translation, Vector4 rotationVec)
Create from ARCore translation + rotation.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
position → Vector3
final
rotation → Quaternion
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

distanceTo(ArPose other) double
Distance to another pose in meters.
midpointTo(ArPose other) → Vector3
Midpoint between this pose and another.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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