The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Education » math-teach

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Re: Why trig? and circles and so on
Replies: 1   Last Post: Apr 1, 1997 3:25 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
George Yanos

Posts: 38
Registered: 12/3/04
Re: Why trig? and circles and so on
Posted: Apr 1, 1997 12:01 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Addressed to: Jack Roach <>

** Reply to note from Jack Roach <> Tue, 1 Apr 1997 10:32:49 -0600 (CST)

> I'm not so sure that it's all that "practical" but in any case, the way
> it's usually done makes no real use of trigonometry.

As it turns out, I'm feeding myself just now, in part, writing programs
that draw circles. Actually, slightly more than circles, tape
measures. A closed tape measure in this case is a circle with a
button in the middle and a tape tab on the edge. Pulling on the tab
gets you the tape.

This tape is modeled on one my wife carried in her purse a while

Drawing circles is done by saying, more or less, draw a circle over
there and make it this big. More precisely:


What trig is involved, if any, I don't know cause I've not looked inside
drawOval. I'd do it with pythagoras, however.

But where to put the tab on the side of my tape measure is done this
/* Circle and button done, now the tab */
double dx,dy; /* increments for corners of tab */
double bx,by; /* starting point for corners, on midline */
double [] px,py; /* coordinates of the three corners */
int [] ix,iy; /* integer versions */
int x1,x2,y1,y2; /* sloppy */
px=new double[4];
py=new double[4];
ix=new int[4];
iy=new int[4];
px[0]=bx-8*dy; py[0]=by+8*dx;
px[1]=px[0]+16*dx; py[1]=py[0]+16*dy;
px[2]=px[1]+16*dy; py[2]=py[1]-16*dx;
px[3]=px[2]-16*dx; py[3]=py[2]-16*dy;
g.setColor(new Color(123,123,123));
for(int i=0; i<=3; i++){

* George Yanos *
* *
* 708-848-4221 *
* Fax:630-323-0924 *

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.