Tag: geometry
-
Area of a polygon
I wasn’t planning on a follow up but here we go. You’ve calculated the closest distance between a point and a line and calculated the area of a triangle but now want more, the area of a polygon! Winging it Let’s try to remember our school geometry lessons. You can divide any polygon up into…
-
Area of a triangle
This is a bit specific but that is the way with some algorithms, or formulas in this case. Let’s say you want to calculate the area of a triangle. I’m not sure why. It could be something in a graphics shader for a fancy effect. Winging it It’s been a long time since high school…
-
AI assistance
We now have access to new powerful tools like ChatGPT that can help us write code. There are a number of potential issues with this: So far I haven’t found this useful for situations at work. Every time I had asked for some source there were fundamental flaws with the code. It did sometimes give…