molochhasme
molochhasme
Sinful Quota
2 posts
For the purpose of cataloging my mistakes for everyone to laugh at.
Don't wanna be here? Send us removal request.
molochhasme · 8 years ago
Text
GetArea(Polygon)
I found myself looking at two shapes. My visual processor easily could tell which one was bigger but my computer didn’t have one. It’s a picky creature only accepting of the shortest stories where once consumed can do some very simple things like deciding which 2 numbers are bigger. To get my computer to tell which of two shapes are bigger I must first tell it a story. In my polygon, a list of sequentially connected locations. Each location has 2 names. It is easy for a computer to tell how different these names are from another location called the origin. So the rest of the story I tell explains the concept of an area in terms of its relationship to the origin. Any neighbors in the list are faces. The faces furthest from the origin cast a shadow leading to the origin the amount of shadow created is known. The sides that are placed in shadow project light toward the origin to remove shadow. The amount of shadow removed is known. When all sides are placed to form the polygon the size of the shadow is equal to the area of the polygon. And now for as long as my computer remembers this story it has a new power it had not before.
Def getArea(polygon):
    Previousvertice  = lastverticeof(polygon)
    Area = 0
    For vertice in polygon:
                               Area = Area + (vertice[x] + Previousvertice[x]) * (vertice[y] – Previousvertice[y])
                               Previousvertice = vertice
    Area = absolutevalue(Area)
    Area = Area/2    
    Return Area
��@�ެ
0 notes
molochhasme · 10 years ago
Photo
If that car was a little bit faster.....
Tumblr media Tumblr media
A giant boulder fell on the highway in Ohio.
[source]
3K notes · View notes