Skip to content
Advertisement

Tag: trigonometry

Find the coordinate given the angle and distance from a point

I am trying to draw lines on android canvas by calculating the last point (X,Y) given a point (Xo,Yo), the distance and the angle. A diagram is illustrated below: I am calculating the azimuth orientation angle degree using the below formula from magnetic sensor and accelerometer values I am saving all lines in an array and afterwhich I am calling

Transforming compass direction output

I have directional outputs which are both flipped and + – as appose to genuine compass outputs. I want to convert these using math to give me the correct output. I am pretty sure this can be done using trigonometric functions, i would welcome any advice i have drawn a quick sketch excuse the rough jotting. Left the current situation

Advertisement