Groups
Maths Question  SIN COS etc
Have a problem:
i need to draw a curve using straight equal length lines.
It has 4 parameters: start X and Y and an end X and Y
Start X and Y will be the pivot so will never change but i need to work out the end X and Y in order to create a 1/4 circle using equal length lines.
Any one know of the equation to solve this?
i need to draw a curve using straight equal length lines.
It has 4 parameters: start X and Y and an end X and Y
Start X and Y will be the pivot so will never change but i need to work out the end X and Y in order to create a 1/4 circle using equal length lines.
Any one know of the equation to solve this?
..effectively what you're trying to do is lay intersecting tangents of equal length on a 1/4 size circle
correct?
and what you're trying to achieve is the a formula for the perimeter of the shape formed by the intersecting equilength tangents
correct?
......................... Just what I was thinking!.............................................. honest
Original Poster



....................................................................................< the curve from the horizontal to the vertical ish lol



..love things like this...take a look @ this other problem
link
hotukdeals.com/mis…e=3
anyway ...will get back later this afternoon..if you haven't resolved it by then
cheers
DL
Original Poster
we're looking at a polygonic figure ?
I assume you know the radius of this 1/4 circle you'd like to draw ?
so either
1) we have this circle enclosing a polygon with the tips of the polygon touching the inner perimeter of the circle ( 1/4 circle to be specific )
or
2) have the circle just fitting inside the the polygon which would automatically create tangents for you if you see what I mean
( rather like fitting a small bicycle wheel into a multisided (angular) hat box so that the wheel touches every angled side( face)
..my mums hat boxes come to mind..haha)
anyway take a look here
mathopenref.com/pol…tml
cheers
Original Poster
radius is  6cm
cheers
Original Poster
var offsetX = 0;
var offsetY = 100;
var circleRadius = 600;
for(i = 0; i<=90; i++)
{
x = (Math.cos(i * 3.142 / 180) * circleRadius);
y = (Math.sin(i * 3.142 / 180) * circleRadius);
}