enuToWorld static method
UArVector3
enuToWorld(
- UArVector3 enu, {
- double northYaw = 0,
- UArVector3 origin = UArVector3.zero,
Converts an ENU offset into AR world space, given the session's north
alignment (northYaw, radians) and the world position of the origin.
Implementation
static UArVector3 enuToWorld(UArVector3 enu, {double northYaw = 0, UArVector3 origin = UArVector3.zero}) {
final UArVector3 local = UArVector3(enu.x, enu.y, -enu.z);
return UArQuaternion.yaw(northYaw).rotate(local) + origin;
}