I finally have the land blob area derived from the
cross product! 8-P
I have the page looking at the fan area size and
comparing this to real world continent areas.
I figured out how my angles were getting messed up.
The total always needs to be a positive number and
I just hit the angle with Math.abs(). I can now work
on building the new triangle fan off oth these three
old points and the new center point.
I sorted out my problem with the area of the second
new triangle, now I need to build the new triangle fan.
World circumference is 44622.2 km and div size is 447px, and world area is 633.79 m. km^2
(area of the triangles from cross product)
Land blob area: 23.29 m. km^2, 3.67%
Between South America and North America or Africa in size.
Shape: polygon(53.6% 60.5%, 52.2% 63.8%, 45.7% 63.5%, 42% 58.5%, 43% 55.4%, 45.8% 52.7%, 43.6% 51%, 51.1% 53.2%, 53.4% 54.4%)
9 vertices, first pt: 6, previous: 5, next: 7, first angle: 2.16 , 2nd: 0.84, total: 1.33, halfway angle: 2.82
h1: 43.6, v1: 51
0) dh: 4.8, dv: 3.5, angle: 0.64, atan2: 0.6
1) dh: 3.4, dv: 6.8, angle: 1.1, atan2: 1.1
2) dh: -3.1, dv: 6.5, angle: 2, atan2: 2
3) dh: -6.8, dv: 1.5, angle: 2.9, atan2: 2.9
4) dh: -5.8, dv: -1.6, angle: 3.4, atan2: 3.4
5) dh: -3, dv: -4.3, angle: 4.1, atan2: 4.1
6) dh: -0.9, dv: -7.4, angle: 4.6, atan2: 4.5
7) dh: 2.3, dv: -3.8, angle: 5.3, atan2: 5.2
8) dh: 4.6, dv: -2.6, angle: 5.8, atan2: 5.7
No comments:
Post a Comment