List of rotation matrix for object projection on screen in android -
i have vector x , y gps latitude , longitude of device position , target object. draw marker on target object on screen need transformation vector. transform need use rotation matrices. have created list of rotation matrices. point not being drawn on correct position. think m missing rotation matrices. below list
- rotation being landscape x axis -90 degree
- remap coordinate after getting rotation getrotation() method
my point being shown left of main object. y axis guess. projection correct that's taken opengl. think missing rotation y axis. please help.
yes missing rotation y-axis. error magnetic north not being same true north. magnetic north moving nw @ speed of 40km/year true north. result need calculate deflection of magnetic sensor north @ position true north.
problem deflection different @ different position , different time. android gives method calculate deflection @ position given latitude,longitude , current time. method getdeclination ()
, use below angle
gmf = new geomagneticfield((float)latitude,(float)longitude,(float)altitude, system.currenttimemillis()); angley = math.toradians(-gmf.getdeclination());
for reference take @ geomagneticfield
Comments
Post a Comment