Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I make a 2d oval using math? [closed]

Asked by
di5z 11
4 years ago
Edited 4 years ago

I made circles, squares, triangles, but how do you make a oval? I tried using magnitude and percentages of two radiuses (According to google, that's the plural version of radius.) but i couldnt wrap my head around the way i wouldve done it. Does anyone have an idea or know how to make ovals of some sort? Im going to place it inside a table for terrain generation.

1
You're looking for an ellipse. [ (x^2 / a^2) + (y^2 / b^2) = 1 ] is the general equation where (a) is distance from the origin (x,y) on the x (horizontal) axis, and (b) is the distance from the origin (x,y) on the y (vertical) axis. lolzmac 207 — 4y

Closed as Not Constructive by JesseSong

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?