Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import math
- # Calculates the next point
- def next_point(dist, angle, curr_point):
- x1 = curr_point[0]
- y1 = curr_point[1]
- x2 = x1 + dist * math.sin(math.pi * angle / 180)
- y2 = y1 + dist * math.cos(math.pi * angle / 180)
- # Northing and Easting of the point
- return (x2, y2)
- if __name__ == '__main__':
- e = 250680.81969401648 # Easting in meters
- n = 1693455.5250321052 # Northing in meters
- d = 400.05 # Distance in meters
- a = 311.933333 # Azimuth in degrees
- next_p = next_point(d, a, (e, n))
- print(next_p)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement