Monday, August 29, 2022

Can't figure out what I'm doing wrong...

17 April 2022- Math.atan2 and the Cross Product!

6179.3 px*2

The map div is 502.6 pixels across. The world diameter and surface area are random and so is the size of some random area which I will have the page define with some triangles. The square root of the random area will give me a distance which I will use to create an initial triangle at two points some distance and angle from P0... which I will calculate the area for from the XYZ coordinates on the surface of a sphere. I will then make new triangles off of some edge of the triangle mesh which represents that random area until we have a sum of the triangle areas greater than or equal to the random area...

What I need to accomplish next is that first triangle and i would like to print the area inside the triangle as a daughter 'p' div, like I am already doing only for the area in m. km*2.

47020.2 km in circumference.
Surface Area: 703.75 m. km^2
Random Area: 184.89 m. km^2, 13597 km or 72.6 pixels on a side, and random distance is 91.5
polygon(260.3px 139.6px, 361.6px 139.6px, 266.3px 200.6px, 345.7px 245.9px) and triangle area is 6179.3 px*2
502.6 px across
Angle: 0.5185791826392998 radians

No comments:

Post a Comment