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
3
votes
2 answers

How to fix SVG top and left stroke truncation?

I have created an ellipse in SVG with a stroke-width and stroke but the top and left sides of the stroke are truncated. They appear to be overflowing outside of the containing svg tag. I tried using overflow:visible; property on the SVG but it still…
Surender Thakran
  • 3,958
  • 11
  • 47
  • 81
3
votes
2 answers

Use Ellipse with origin in the center WPF

I have a program that I can drag, rotate and resize a System.Windows.Shapes.Ellipse in a Canvas panel. To resize and drag the ellipse inside the canvas and always keep it center I need to correct every time its origin, because the ellipse has it…
Butzke
  • 561
  • 1
  • 14
  • 30
3
votes
3 answers

Compare Colors WPF

I have some ellipsis in a canvas. I want that when I click above a ellipse it should change the color of the stroke to green, and if I click again it back to the original color that its red. I had used this three colors. SolidColorBrush red = new…
Butzke
  • 561
  • 1
  • 14
  • 30
3
votes
2 answers

Getting the ellipse function to match the dataEllipse function in R

So I am sampling from a multivariate normal distribution in R, and am trying to figure out how to calculate its 95% confidence ellipse using the ellipse() function in the package car. Here is some code I am running: mu = c(0,0) sigma =…
user2005253
3
votes
4 answers

How can I draw parts of an ellipse drawn with cubic bezier curves?

I'm drawing an ellipse in HTML5 Canvas using this function (How to draw an oval in html5 canvas?): function drawEllipse(ctx, x, y, w, h) { var kappa = .5522848, ox = (w / 2) * kappa, // control point offset horizontal oy = (h / 2) *…
Felipe Mosso
  • 3,907
  • 11
  • 38
  • 61
3
votes
1 answer

Finding multiple ellipse for a non parametric Image

As shown in the image I need to find multiple ellipse (red, manually made), in the data shown by black.
crack_addict
  • 653
  • 2
  • 8
  • 13
3
votes
2 answers

how to measure grid width/height in wpf dynamically as the window size changes

What I want to do overall is add an ellipse to a canvas to represent the position of a golf ball on the Circumference of a circle when it is struck at a certain angle by a golf putter from the center of that circle. To do this I am using two images…
user1948787
  • 63
  • 2
  • 8
3
votes
1 answer

fit a ellipse in Python given a set of points xi=(xi,yi)

I am computing a series of index from a 2D points (x,y). One index is the ratio between minor and major axis. To fit the ellipse i am using the following post when i run these function the final results looks strange because the center and the axis…
Gianni Spear
  • 7,033
  • 22
  • 82
  • 131
3
votes
1 answer

Python: Contour features in a polygon shapefiles with a straightforward solution

Dear Members list, First of all, I apologize to post this question modified and improved from a previous post. Recently i am working on shapefiles polygon in order to compute basic contour features: Area, Perimeter, Area convex hull, Perimeter…
Gianni Spear
  • 7,033
  • 22
  • 82
  • 131
3
votes
2 answers

Moving multiple sprites in elliptical path with uniform speed

I'm trying to move multiple sprites (images) in an elliptical path such that distance (arc distance) remains uniform. I have tried Move each sprite angle by angle, however the problem with this is that distance moved while moving unit angle around…
3
votes
1 answer

Draw an ellipse given measures of ellipticity

I am working on a visualization for some data and I've run into a snag. I need to draw some ellipses based on data that looks like this: { x: 455.53 //the center x coordinate y: 122.44 //the center y coordinate e1: .24101 //value from -1…
FlyingStreudel
  • 4,434
  • 4
  • 33
  • 55
3
votes
1 answer

Drawing a SuperEllipse in HLSL

Update : answer on how to draw one using Superformula is at the end I need to draw a rounded rectangle such as this one, using a SuperEllipse. Drawing one when being able to plot wherever was easy : But in HLSL where you cannot, I got stuck on the…
aybe
  • 15,516
  • 9
  • 57
  • 105
3
votes
1 answer

How to have rotated Ellipse shape in Java?

How to have rotated ellipse Shape in java? I.e. so that its semi-axes are not parallel to coordinate axes? P.S. I need not just draw this ellipse but have it in memory as a shape object.
Suzan Cioc
  • 29,281
  • 63
  • 213
  • 385
2
votes
1 answer

Is SVG elliptical arc curve path command overdetermined?

SVG's elliptical arc curve path command takes 9 parameters: implicit current X and Y, rx (x-radius), ry (y-radius), x-axis-rotation, large-arc-flag, sweep-flag, x (endpoint-x), y (endpoint-y). Lets ignore the two "flag" parameters that I believe to…
Tregoreg
  • 18,872
  • 15
  • 48
  • 69
2
votes
0 answers

Find control points to draw arc on ellipse

i want to draw an arc on ellipse. i dont know how to draw arc using curve, drawing arc with direct arc method wont help, since they are for drawing arc on circles(objective c) on further searching i came to know elliptical arc can be drawn using…
alrarea
  • 110
  • 1
  • 9