Would some genius please help me this.
I have this image hotspot (yellow area):
(image 1)
It is descripted in kpt by 4 points:
<point x="0.572843" y="0.369941"/>
<point x="0.67479" y="0.370735"/>
<point x="0.675106" y="0.50119"/>
<point x="0.57254" y="0.501432"/>
When XML file is built, it looks like this:
It is descripted in XML:
<hotspot name="spotpicture53"
url="%FIRSTXML%/spots/spot.png"
distorted="true"
scale="1.0"
ath="44.169299"
atv="-2.496672"
width="244"
height="461"
rx="58.374289612600599"
ry="24.619635269375699"
rz="1.8306804508499752"
enabled="true"
capture="false"
handcursor="false"
/>
I tried to understand what math to convert 4 points of equirectangular to rx ry rz ath atv. At first, I thought ath atv is centroid of 4 points. However, it's not correct because it should be (44.55654,-11.53605). I also tried Cartesian coordinates but no luck. Would someone please shed some light to this or help me?
Much appreciation!