Maths Question - SIN COS etc - HotUKDeals
Get the HotUKDeals app free at Google Play

#### Search Error

An error occurred when searching, please try again!

# Maths Question - SIN COS etc

£0.00 @ COS
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 … Read More
6y, 4m agoPosted 6 years, 4 months ago
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?
6y, 4m agoPosted 6 years, 4 months ago
Options

(10)
#1
Might need to draw what you mean: do you mean you want a set of 4 joined, equal length, straight lines that span from sX:sY to eX:eY that follow are 90 degree arc?
#2
I think I know what you're asking
..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 equi-length tangents
correct?
#3
darklight
I think I know what you're asking..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 equi-length tangents correct?

......................... Just what I was thinking!.............................................. honest
#4
yes!

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

Edited By: mds1256 on Jan 04, 2011 13:40
#5
snowtiger
darklight
I think I know what you're asking..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 equi-length tangents correct?

......................... Just what I was thinking!.............................................. honest

..love things like this...take a look @ this other problem

http://www.hotukdeals.com/misc/anyone-good-at-physics-activity-hal/819170?page=3

anyway ...will get back later this afternoon..if you haven't resolved it by then
cheers
DL
#6
any luck?
#7
sorry for the late response ...have you made any progress yourself?

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

http://www.mathopenref.com/polygonregulararea.html

cheers
#8
No... still struggling..

#9
..ok will have a go ...be back later..
cheers
#10
worked it out in the end

var offsetX = 0;
var offsetY = 100;
for(i = 0; i<=90; i++)
{

x = (Math.cos(i * 3.142 / 180) * circleRadius);
y = (Math.sin(i * 3.142 / 180) * circleRadius);

}