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 added the areas of the two new triangles and I'm
doing something qrong here...)
World circumference is 35568.5 km and div size is 356px, and world area is 402.69 m. km^2
(area of the triangles from cross product)
Land blob area: NaN m. km^2, NaN%
Smaller than Australia!
Shape: polygon(68.1% 69.5%, 64.2% 72.2%, 77.2% 88.5%, 56.3% 67.8%, 55.3% 58.6%, 61.3% 54.8%, 72.9% 53.1%, 83.2% 61%)
8 vertices, first pt: 2, previous: 1, next: 3, first angle: -0.24 , 2nd: -2.19, total: 1.95, halfway angle: 0.73
h1: 77.2, v1: 88.5
0) dh: 4.1, dv: 2.7, angle: 0.595, atan2: 0.5
1) dh: 0.3, dv: 5.4, angle: 1.5, atan2: 1.5
2) dh: -3.8, dv: 6.4, angle: 2.1, atan2: 2.1
3) dh: -7.7, dv: 1, angle: 3, atan2: 3
4) dh: -8.7, dv: -8.2, angle: 3.9, atan2: 3.8
5) dh: -2.7, dv: -12, angle: 4.5, atan2: 4.4
6) dh: 9, dv: -13.7, angle: 5.3, atan2: 5.2
7) dh: 19.3, dv: -5.8, angle: 6, atan2: 5.9
No comments:
Post a Comment