Re: drawing Lines

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



This is pretty simple really. Use a Line control. Determine the center of the circle and it's radius, then determine the dx and dy, by using Cos and Sin respectively, and multiply that by the radius. The line's start is the xCenter -dx, yCenter - dy, and the end points as xCenter + dx and yCenter + dy



"Kevin J Prince" <kevin@xxxxxxxxxxxxxxxxxx> wrote in message news:ZmSGlTAPDRRIFATM@xxxxxxxxxxxxxxxxxxxxx
Hi,
Is the following possible and if so how?

I have a form, with a frame, in that frame is a shape(circle).

I want to know if I can draw lines in that circle at any one of the 360 degrees for a specific length.

I hope to get date in and plot a line from the centre of the circle to the outer rim (max) at a specific angle. If the date get larger than that distance (centre to outer) I will need to work out a formulae which redraws all data at 75% of the original size.

Hope that makes sense???

Or is there already a subroutine somewhere to do just that?

|Regards

--
I live in my own little world,
But it's OK, they know me here....

++ Kevin J Prince ++

.



Relevant Pages

  • [SUMMARY] The Smallest Circle (#157)
    ... about the smallest enclosing circle problem... ... def initialize(*coords) ... y_big is the minimum radius of a circle ... always been the square of the radius, we finally take its square root ...
    (comp.lang.ruby)
  • Re: need help with homework
    ... So if you solve for circumference you get pi x diameter, ... Now if you know relation between diameter and radius, ... Center of circle splits diameter into two radii. ... circular disk, i.e. a disk whose perimiter is a circle. ...
    (sci.math)
  • Re: Somebody splain to me about neck radius and...
    ... my regular standard style guitar. ... well over 1/4" off the fretboard, plus I use the bottom 6 strings from ... A fretboard radius is simply that. ... radius of the circle where that arc comes from. ...
    (alt.guitar)
  • Re: Somebody splain to me about neck radius and...
    ... my regular standard style guitar. ... well over 1/4" off the fretboard, plus I use the bottom 6 strings from ... A fretboard radius is simply that. ... radius of the circle where that arc comes from. ...
    (alt.guitar)
  • Re: Help with extend
    ... I have a superclass GeometricObject which compiles. ... Then I have a subclass Circle which extends the superclass, but the compiler doesn't like it and i get the following error (cannot find symbol ... public void setFilled{ ... public Circle(double radius) { ...
    (comp.lang.java.help)