You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to get coordinates by using the following code:
void _handleTap(TapUpDetails details) {
final Vector3 focalCoord = canvasPointToVector3(_lastFocalPoint);
final Vector3 tapCoord = canvasPointToVector3(details.localPosition);
Quaternion q = quaternionFromTwoVectors(focalCoord, tapCoord);
if (_lastQuaternion != null) {
final _quaternion =
_lastQuaternion! * q * Quaternion.axisAngle(Vector3(0, 0, 1), 0.0);
print("ON HANDLE TAP = ${quaternionToLatLon(_quaternion)}");
}
}
But it seems that the coordinate calculates from the previous rotation. Do you have any idea or suggestions how can I achieve coordinates on the earth?
The text was updated successfully, but these errors were encountered:
I tried to get coordinates by using the following code:
But it seems that the coordinate calculates from the previous rotation. Do you have any idea or suggestions how can I achieve coordinates on the earth?
The text was updated successfully, but these errors were encountered: