Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import math
- #ladder calculations
- link_h = 1.7 # link's height in meters
- link_ladder_step_h = 4 # how many ladder steps is link
- ladder_step_h = link_h/(link_ladder_step_h - 1) # the distance between two ladder steps. Since link is 4 ladder steps tall, he is 3 "in-between" tall. That's why I subtracted 1 here.
- ladder_steps = 45 # the number of ladder steps
- ladder_h = (ladder_steps - 1) * ladder_step_h # Ladder Height.(I'm counting the in-between of the ladder steps which should be 1 less the total ladder number)
- print "Ladder Lenght:", ladder_h, "m"
- #temple side-wall/length calculations
- #the lines I'm refering to is the temple side wall picture
- red_line = ladder_h
- yellow_side_angle = math.radians(23.69)
- blue_side_angle = math.radians(45)
- yellow_side = red_line/math.tan(yellow_side_angle)
- blue_side = red_line/math.tan(blue_side_angle)
- print "Yellow Line: ",yellow_side, "m"
- print "Blue Line:", blue_side, "m"
- temple_l = blue_side + yellow_side # the length of the side-wall or we could just call it the the temple length
- print "Temple Length: ", temple_l, "m"
- #temple width calculation
- #the lines I'm referring to is the temple map picture
- red_line2 = temple_l
- blue_side2_angle = math.radians(61.04)
- temple_w = red_line2/math.tan(blue_side2_angle) # lenght of the front side of the temple or we could just call the temple length
- print "Temple Width:", temple_w, "m"
- tof_area_m = temple_l * temple_w #the area of temple of time
- # map area calculations
- #pic1 is the map picture with just the great platue
- #pic2 is the map picture with surrounding areas of the platue and the great platue itself
- #pic3 is the map picture without the great platue
- print "Temple of Time Area: ",tof_area_m,"m^2"
- tof_l_px = 35 # temple of time length in pixels in pic1
- tof_w_px = 20 # temple of time width in pixels in pic1
- tof_area_px = tof_l_px * tof_w_px
- print "Temple of Time Area: ",tof_area_px,"px"
- pic1_l = 658 # pic1 length
- pic1_w = 528 # pic1 width
- pic1_area_px = pic1_l * pic1_w
- print "Great Platue Area: ",pic1_area_px, "px"
- pic1_area_km = ((tof_area_m * pic1_area_px)/tof_area_px)/1000**2 # I directly converted m^2 to km^2
- print "Great Platue Area: ",pic1_area_km, "km^2"
- pic2_gp_l = 104 # great platue length in pic2 in pixels
- pic2_gp_w = 81 # great platue width in pic2 in pixels
- pic2_gp_area_px = pic2_gp_l * pic2_gp_w
- pic2_l = 960
- pic2_w = 282
- pic2_area_px = pic2_l * pic2_w
- print 'The "Map with Great Platue" Area:', pic2_area_px, "px"
- pic2_area_km = (pic1_area_km*pic2_area_px)/pic2_gp_area_px
- print 'The "Map with Great Platue" Area:', pic2_area_km, "km^2"
- pic3_l = 960
- pic3_w = 530
- pic3_area_px = pic3_l * pic3_w
- print 'The "Map without Great Platue" Area:', pic3_area_px, "px"
- pic3_area_km = (pic1_area_km*pic3_area_px)/pic2_gp_area_px
- print 'The "Map without Great Platue" Area:', pic3_area_km, "km^2"
- total_map = pic2_area_km + pic3_area_km
- print "Total Map Size:", total_map, "km^2"
- #P.S: Forgive me for the bad names.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement