Sponsored Content
Full Discussion: Returns points of an ellipse
Top Forums Shell Programming and Scripting Returns points of an ellipse Post 302786381 by DGPickett on Wednesday 27th of March 2013 10:49:28 AM
Old 03-27-2013
Not an ellipsoidal solid (an ellipse spun on the line through its axes), then, just an ellipse in a plane.

I guess an ellipse reduced to a unit ellipse is a circle, so not so much scaling as rotation and translation. Do you start with just a few points? Takes three to set the plane, which sets the rotation need, and then I expect a couple more to fix the ellipse in position, size and orientation. Having the axes is so much more concise than having random edge points. Obviously, some points might be redundant in fixing the ellipse, such as 4 points of a rectangle, which the solution must be robust in detecting.

The characteristic of an ellipse is that the reflection angles of rays from one axis hit the other, but trig is processing expensive and not friendly for gauss-jordan reduction. More friendly is that all points have the same sum of distances from the two axes, and are in the surface of a cone. Three-D distance is not friendly, but after rotation it is 2d. The 2d distance calc is polynomial, but with the right scaling, separately for x and y, and translation, the first order terms might be zeroed, so the squares become substitute terms in the GJ. It is reminiscent of deriving the binomial theorem, if you recall back then!

There are colections of solutions for most geometric problems, but doing it yourself is so much nicer. I recall regenerating the binomial theorem while taking a math SAT (got 800), but since then for some reason it has stuck! I never liked the trig in calculus, as there were so many identities to memorize, but most Integral Calculus tests were open book.

Last edited by DGPickett; 03-27-2013 at 11:55 AM..
 

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

mount points

sometimes in Solaris 8 when I go to mount filesystems using either the mount command or by editing the /etc/vfstab, i get a nice little error message saying the the number of allowable mount points has been exceeded. I have read man pages until I am blue in the face and no where can I find what the... (3 Replies)
Discussion started by: manderson19
3 Replies

2. UNIX for Dummies Questions & Answers

tar using mount points

hi i tried to tar a directory in my server but it show ensufficient space. therefore i tried to save it to a mount point using tar /mountpoint/newfilename file2btar but it gives me permission denied. i am using the root account to do this. is it possible to tar files and put it to mounted... (3 Replies)
Discussion started by: legato
3 Replies

3. UNIX and Linux Applications

Gnuplot question: how to plot 3D points as colored points in map view?

I have a simple gnuplot question. I have a set of points (list of x,y,z values; irregularly spaced, i.e. no grid) that I want to plot. I want the plot to look like this: - points in map view (no 3D view) - color of each point should depend on its z-value. - I want to define my own color scale -... (0 Replies)
Discussion started by: karman
0 Replies

4. Shell Programming and Scripting

How can I get entries between two points

Hi, I am trying to write a script to get entries between two points lets say start and end points from a log file, the log file time format is as follows Start - 07/Aug/2008:18:26:43 End - 07/Aug/2008:19:36:43 I tried using the following awk command but it couldnt pick up the entries... (3 Replies)
Discussion started by: openspark
3 Replies

5. UNIX for Advanced & Expert Users

mount points

hi, I believe a mount point does not have to be a physical disk, but rather a logical one? Is this correct? if so, how can I find out if my mount points are on different physical disks? thanks (9 Replies)
Discussion started by: JamesByars
9 Replies

6. Post Here to Contact Site Administrators and Moderators

Points?

Has any thought been given to assigning points to threads much in the way the HP ITRC forums do? This might not be possible, just a thought. (1 Reply)
Discussion started by: candlejack
1 Replies

7. Shell Programming and Scripting

Aggregated points

Combine points of specific key (a1) based on user defined size (lets say 200 in this example). so a1 191 and 191+200 and sum of all the values (4th column) and vice versa... Thanx a bunch! a1 191 201 1 a1 201 211 2 a1 211 221 1 a1 ....... .... a2......... ........ (7 Replies)
Discussion started by: quincyjones
7 Replies

8. Red Hat

Mount Points? How?

Hi folks, I have been asked to performed the following: Add the following new moint points systemA:/avp and SystemB:/usr/sap/trans to be the new linux server ZZZ How can I add those mount points and how those mount points can become another linuz server?:wall::wall::wall: (2 Replies)
Discussion started by: 300zxmuro
2 Replies

9. UNIX for Dummies Questions & Answers

Help with decimal points

Hi All, I would like to set decimal point to 16 in the following bash script but it has syntax error at }: awk '{printf"%.16e", (a<500,a++,$1/(a*1.1212121212121229e-02))}' input.dat >output.datHow may I set it in the correct way please? Thank you very much! (6 Replies)
Discussion started by: sxiong
6 Replies
EllipseComp(3U) 					    InterViews Reference Manual 					   EllipseComp(3U)

NAME
EllipseComp, EllipseView, PSEllipse - ellipse component subject, view, and PostScript external representation SYNOPSIS
#include <Unidraw/Components/ellipse.h> DESCRIPTION
EllipseComp is a GraphicComp that defines an ellipse. It uses an Ellipse graphic to store its graphical attributes. EllipseView is a GraphicView for displaying the ellipse. PSEllipse is a PostScriptView that externalizes the subject's information in PostScript form. ELLIPSECOMP PUBLIC OPERATIONS
EllipseComp(SF_Ellipse* = nil) The constructor takes an optional stroked-filled ellipse that defines the attributes of the ellipse. SF_Ellipse* GetEllipse() Return the SF_Ellipse graphic that defines the ellipse's attributes. GetEllipse is simply a more specific form of the GetGraphic operation. ELLIPSEVIEW PUBLIC OPERATIONS
EllipseView(EllipseComp* = nil) Create an EllipseView, optionally supplying the subject. virtual void Interpret(Command*) EllipseView interprets AlignToGridCmd to align its center to the grid. virtual Manipulator* CreateManipulator( Viewer*, Event&, Transformer*, Tool* ) virtual void InterpretManipulator(Manipulator*) EllipseView redefines its response to manipulation with a GraphicCompTool. The user clicks to specify the center of the ellipse and then drags to vary its axes. The center and the axes will be constrained by gravity, if any. EllipseComp* GetEllipseComp() Return the subject. PSELLIPSE PUBLIC OPERATIONS
PSEllipse(EllipseComp* = nil) Construct a PostScript external representation of the given subject, if any. SEE ALSO
GraphicComp(3U), GraphicCompTool(3U), GraphicView(3U), Grid(3U), PostScriptView(3U), align(3U), ellipses(3U) Unidraw 22 January 1991 EllipseComp(3U)
All times are GMT -4. The time now is 10:57 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy