Questions tagged [ellipse]

In geometry, an ellipse is a plane curve that results from the intersection of a cone by a plane in a way that produces a closed curve. Circles are special cases of ellipses. An ellipse is also the locus of all points of the plane whose distances to two fixed points add to the same constant.

In geometry, an ellipse (from Greek ἔλλειψις elleipsis, a "falling short") is a plane curve that results from the intersection of a cone by a plane in a way that produces a closed curve. Circles are special cases of ellipses, obtained when the cutting plane is orthogonal to the cone's axis. An ellipse is also the locus of all points of the plane whose distances to two fixed points add to the same constant.

Ellipses are closed curves and are the bounded case of the conic sections, the curves that result from the intersection of a circular cone and a plane that does not pass through its apex; the other two (open and unbounded) cases are parabolas and hyperbolas. Ellipses also arise as images of a circle under parallel projection and the bounded cases of perspective projection, which are simply intersections of the projective cone with the plane of projection. It is also the simplest Lissajous figure, formed when the horizontal and vertical motions are sinusoids with the same frequency.

838 questions
2
votes
2 answers

Rasterizing an ellipse

Is there a efficient algorithm out there to find the indicies of pixels in a general ellipse? Essentially, what I want to do is to find the indicies in a two dimensional array that corresponds to a parameterized ellipse that spans over the "2-D…
2
votes
1 answer

iPhone How to clip crescent moon pattern

With help from stack overflow i am getting familiar with quartz drawing in iPhone. I want to make code that clips crescent moon pattern, this what i have so far, but its not working quite as i expect: contextRef =…
MegaManX
  • 8,766
  • 12
  • 51
  • 83
2
votes
3 answers

Collision with Ellipse

For an elliptical billiard-table, how can a collision be detected and resolved between the boundary of this table and one billiard-ball? 1.) I want to see if the position, P(x,y), of the billiard-ball lies inside on or outside the boundary of the…
Ben
  • 15,938
  • 19
  • 92
  • 138
2
votes
2 answers

Calculating points on an elliptical orbit in 3D

I'm required to move my virtual camera from Point A in 3D space to Point B in an elliptical orbit. So far, I have: Calculated the projected lines from the center of each camera position (i.e. extended the front vector infinitely). Used this to…
Sonoman
  • 3,379
  • 9
  • 45
  • 61
2
votes
2 answers

How to approximate an ellipse from the exterior?

In order to solve this problem about the overlap of two ellipses, we approximate the ellipses from their interior. Indeed an ellipse is convex and we construct a path by joining successive points on the perimeter. This gives a polygon contained in…
Stéphane Laurent
  • 75,186
  • 15
  • 119
  • 225
2
votes
1 answer

Difference between stat_ellipse and geom_mark_ellipse in ggplot?

I am making an NMDS plot based on Bray-Curtis dissimilarity and trying to draw ellipses on the plot based on a categorical variable. My data does NOT assume a normal distribution. I've figured out how to draw ellipses using 2 different commands that…
user20796953
2
votes
1 answer

Function to Calculate Whether A Point is Within Ellipse using stat_ellipse

The question seems simple enough. I can plot 95% credible/confidence ellipses in ggplot using stat_ellipse. I want to find out how to test whether a given point is within that ellipse. For example, here is a dataset of points and their 95% ellipses,…
Alex Krohn
  • 71
  • 5
2
votes
1 answer

Plotting an ellipse with eigenvectors using matplotlib and numpy

I ran into a deadlock with the following code, and I hope you can help me out. It seems like a deadlock situation because I need to understand the math in order to write the code, but I also need the code to understand the math. I have spent half a…
jupiter_jazz
  • 333
  • 2
  • 8
2
votes
2 answers

Remove border from opencv generated ellipse in pygame

I've set up this window where I blit an ellipse to the screen. I would like to have the ellipse fully white with a smooth border. It looks acceptable, but when I add the ellipse to a white background, the border of the ellipse shows up. import…
Stechouse
  • 43
  • 4
2
votes
1 answer

How to draw arrow between ellipses

I'm trying to programmatically draw an arrow from one ellipse to another, like below. How do I calculate where on ellipse B's edge the arrow needs to point? Or is there an easier way to do this in SVG? I am given the x and y coordinates of each…
at.
  • 50,922
  • 104
  • 292
  • 461
2
votes
1 answer

Nannou - How to draw a pie (part of an ellipse)?

I'm new to the rust library Nannou and I'm trying to draw pie chart. I know that in javascript you can specify the amount of the ellipse via: ctx.ellipse(x, y, radiusX, radiusY, rotation, startAngle, endAngle, anticlockwise); I couldn't however…
2
votes
1 answer

How can I draw half of ellipse in SVG?

How can I draw half of ellipse in SVG? What I'm trying to do
2
votes
2 answers

Generate data inside ellipse and rectangle

I need to generate data, which I should use in following calculations. One part of my data should include 15000 points, which have even distribution inside ellipse(runif in R). Here is the the equation of ellipse: Another part of data should…
Vorrven
  • 51
  • 6
2
votes
0 answers

How do I calculate the pitch and yaw rotations of a 3D disk from its 2D projection?

I want to write an algorithm which calculates the rotation of a 3D disk/circle relative to the image plane. I want to build an application which would determine the rotation of real world objects with circular shape, using a method described in this…
Valentine
  • 31
  • 4
2
votes
2 answers

Differences between drawing an Ellipse in Android and Java

In Java for some reason the Ellipse2D.Double uses the parameters (height, width, x, y) where as when I create a RectF in Android the parameters are (left, top, right, bottom) so I'm a bit confused on adjusting to the differences. If a create an…
StartingGroovy
  • 2,802
  • 9
  • 47
  • 66