Anyone here awesome at math by any chance?

Avatar image for fobwashed
fobwashed

2818

Forum Posts

388

Wiki Points

0

Followers

Reviews: 15

User Lists: 16

#1  Edited By fobwashed

I've run into a problem that's kicking my ass.

The provided variables are the cone angle(cA) of a cone that starts at the origin along the Z axis, the vertical angle (vA) of the direction the cone is facing, and a horizontal angle (hA) along with a distance (d) along that angle to reach the xy plane.

No Caption Provided

With this information I need to find the coordinates on the XY plane where the cone intersects a vertical line generated using the provided horizontal angle and distance. The X is easy to find using Sin(hA) * d.

The cone itself is always originates directly on the Z axis pointing towards the XY plane with a varying vertical angle (vA). Using the cone angle to project what would probably be an ellipses onto the XY plane, I'm looking for the formula used to derive the Y coordinate/s that intersect the vertical line on the X coordinate.

Solution

So, here's what we think is currently the solution.

Provided variables.

hA : horizontal angle

vA : vertical angle

cA : cone angle

d : distance along angle

Necessary variables

Attempting to get the points where the cone's wall intersects the dotted line. In this example, the cone does not have a wide enough angle to do so but hopefully you get the general idea =]
Attempting to get the points where the cone's wall intersects the dotted line. In this example, the cone does not have a wide enough angle to do so but hopefully you get the general idea =]

x : the length of the line that connects the (0,0) point on the XY plane to the dotted line. Derived by using hA and distance.

x= Sin(hA) * d

z : distance from the origin to (0,0) on the XY plane. Derived by using hA and distance.

z = Cos(hA) *d

cTA : angle from origin to top cone wall. Knowing the angle of the cone's vertex and also knowing that it will be pointing at a point along the y-axis we can determine that subtracting the vertical angle from the cone's angle will give us the angle from the origin to the y coordinate that will be intersected by the cone's wall.

cTA = cA - vA

dYTop: Point on y-axis that is intersected by the top of the cone's wall. Derived by using cTA and z.

dYTop = Tan(cTA) * z

yMid: distance from (0,0) to the cone axis intercept along the y-axis. derived by using vA and z.

yMid = Tan(vA) * z

c: distance from origin to yMid. pythagorean theorem.

c = sqrt(yMid^2 + z^2)

hRadius: horizontal radius of the cone. Derived using cA and c

Tan(cA) * c

vRadius: vertical radius of the cone. Derived by subtracting yMid from dYTop

vRadius = dYTop - yMid

After that we have all the variables needed to input into this formula.

x^2 / hRadius^2 + (y - yMid)^2 / vRadius^2) = 1

Solve for y to get the y points.

height1 = (int)(Math.Sqrt(1 - (x * x) / (hRadius * hRadius)) * vRaduis + yMid);

height2 = (int)(yMid - Math.Sqrt(1 - (x * x) / (hRadius * hRadius)) * vRaduis);

The image above would not have any solutions as the cone's angle isn't large enough to intercept the dotted line at x. I haven't started actually testing this yet but it looks right.... big thanks to @heavyduty32 !

Avatar image for rorie
rorie

7887

Forum Posts

1502

Wiki Points

0

Followers

Reviews: 4

User Lists: 3

No Caption Provided

Avatar image for flasaltine
flasaltine

2547

Forum Posts

739

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

I have been looking at this for like an hour and I just say y=0. I mean just look at your picture. That dotted line intersects with your distance line where there is no y component. I could be completely wrong and this problem needs an integral of some cross products of those lines or something. Or just some parametric or polar coordinates of conic sections. I don't know. Is this for a math class or a programming application or something?

Avatar image for jediavenger1738
jediavenger1738

21

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

If I am reading this problem correctly, then I believe the answer is y=d*cos(hA)*tan(vA). It looks like tan(vA) would equal y divided by the longer legof that triangle, and because the longer leg is equal to d*cos(hA), then tan(vA)=y/(d*cos(hA)). Solving for y gets d*cos(hA)*tan(vA).

Avatar image for smtdante89
SMTDante89

2944

Forum Posts

4520

Wiki Points

0

Followers

Reviews: 0

User Lists: 28

I was an English major.

@rorie said:
No Caption Provided

Avatar image for peezmachine
PeezMachine

703

Forum Posts

42

Wiki Points

0

Followers

Reviews: 6

User Lists: 2

#7  Edited By PeezMachine

Just wanna make sure I have the setup here:

1) Have a cone, fixed size, whose size is known when it's centered over the origin (vA = 0). Presumably it has a circular base in this state.

2) You're rotating that cone STRICTLY ALONG THE Y-AXIS such that the projection of the cone in the X-Y plane becomes an ellipse on the grounds that the base of the cone is no longer parallel to the X-Y plane.

3) hA has nothing to do with the dimensions of the cone, it's simply an arbitrary value such that the dotted line it generates could have 0, 1, or 2 intersections with the cone's X-Y projection.

Sound about right?

Avatar image for fobwashed
fobwashed

2818

Forum Posts

388

Wiki Points

0

Followers

Reviews: 15

User Lists: 16

@peezmachine: @jediavenger1738: @flacracker: Sorry duders, I think the way I wrote the question was sorta unclear =P

I got a bunch of help from @heavyduty32 . I'm gonna try testing stuff out once I implement it. If all goes well, I'll try to post the solution here... or at least, what I understand of it -_-;;

Avatar image for justin258
Justin258

16684

Forum Posts

26

Wiki Points

0

Followers

Reviews: 11

User Lists: 8

@smtdante89 said:

I was an English major.

@rorie said:
No Caption Provided

I currently am an English major.....so, yeah, fuck this. Good luck to ya, buddy!

In a few months I will graduate as an English major, so I had this same reaction.

Avatar image for scrawnto
Scrawnto

2558

Forum Posts

83

Wiki Points

0

Followers

Reviews: 0

User Lists: 2

I don't think we ever got around to conic sections in any of my trigonometry or calculus classes. That seems like an odd gap in my mathematics education. I should probably check this stuff out on khan academy or something.

Avatar image for smtdante89
SMTDante89

2944

Forum Posts

4520

Wiki Points

0

Followers

Reviews: 0

User Lists: 28

@godlyawesomeguy said:

@smtdante89 said:

I was an English major.

@rorie said:
No Caption Provided

I currently am an English major.....so, yeah, fuck this. Good luck to ya, buddy!

In a few months I will graduate as an English major, so I had this same reaction.

I suppose I should rephrase what I said slightly. I only said "was" because I just graduated two months ago myself. So good luck/congrats to you both.

Avatar image for audiosnow
audiosnow

3926

Forum Posts

729

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

You can't be an artist and a mathematician too. Pick one and be bad at the other.

Avatar image for video_game_king
Video_Game_King

36563

Forum Posts

59080

Wiki Points

0

Followers

Reviews: 54

User Lists: 14

#13  Edited By Video_Game_King

Are we all English majors?

Avatar image for arbitrarywater
ArbitraryWater

16104

Forum Posts

5585

Wiki Points

0

Followers

Reviews: 8

User Lists: 66

Are we all English majors?

I tell people I am an English major, because that sounds a lot better than "I have no idea what I am doing with my life oh no please kill me now"

Avatar image for turboman
turboman

10064

Forum Posts

19

Wiki Points

0

Followers

Reviews: 23

User Lists: 11

I'm in my periodic differential equations class right now, I'll get it for you when I leave.

Avatar image for megalombax
MegaLombax

457

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

#16  Edited By MegaLombax

Hang on a sec...the way i understood it is that its a cone that is cutting through a vertical plane correct? Therefore, if the origin of the cone is along the z-axis, wouldn't that mean that if one can solve for the x-value, the y-value should be the same, since its the radius of a circle?

Avatar image for nightriff
nightriff

7248

Forum Posts

1467

Wiki Points

0

Followers

Reviews: 4

User Lists: 7

@rorie said:
No Caption Provided

Favorite gif of all time

Avatar image for justin258
Justin258

16684

Forum Posts

26

Wiki Points

0

Followers

Reviews: 11

User Lists: 8

@smtdante89: That's what I thought at first anyway.

@video_game_king said:

Are we all English majors?

I tell people I am an English major, because that sounds a lot better than "I have no idea what I am doing with my life oh no please kill me now"

I know what I'm doing (it isn't much).

You can't be an artist and a mathematician too. Pick one and be bad at the other.

Isaac Asimov (and pretty much any well-known polymath, for that matter) would like a word with you.

Avatar image for turboman
turboman

10064

Forum Posts

19

Wiki Points

0

Followers

Reviews: 23

User Lists: 11

#19  Edited By turboman

@turboman said:

I'm in my periodic differential equations class right now, I'll get it for you when I leave.

wait... the way you wrote the question is extremely confusing... any way you can just copy/paste the question on here, along with section/class :).

Avatar image for trafalgarlaw
TrafalgarLaw

1715

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

#20  Edited By TrafalgarLaw

I'm not that great in geometry but start by making a formula for the varying angle and the cone. This isn't a simple x = y ekuation. You need a

x = 0

y = cos(vA) - radius

z = ???

Avatar image for gkhan
gkhan

1192

Forum Posts

2

Wiki Points

0

Followers

Reviews: 0

User Lists: 4

#21  Edited By gkhan

I'm not entirely sure I understand the question. Are you saying that this is not a perfectly circular cone, that it's a cone that is sort of "squished"? And then are you asking, using only hA, vA and d, how do you get the y-coordinate of where the segment that goes along with the vertical angle hits the plane?

In other words, looking at that nice drawing you made, there are two right-angled triangles, one horizontal and one vertical. Two of the segments go along the plane, one vertically and one horizontally. As you said, the horizontal one is d*sin(hA), and you wish to find the length of the vertical one? Am I reading that right?

If so, you can use some standard trigonometry: the horizontal triangle is made up of three segments, with lengths d, d*sin(hA) and d*cos(hA). The d*cos(hA) segment is the one that goes from the origin along the z-axis, hitting the plane at (0,0). That segment is shared with the vertical triangle, so if the length of the segment you're trying to find is Y, then tan(vA) = Y / (d*cos(hA)). Then Y = d*cos(hA)*tan(vA).

Is that what you wanted?

EDIT: somehow I totally missed that @jediavenger1738 had provided this exact answer! Sorry duder, didn't see ya there.

Avatar image for drdarkstryfe
DrDarkStryfe

2563

Forum Posts

1672

Wiki Points

0

Followers

Reviews: 1

User Lists: 2

I was awesome at math....

until they started using letters. I checked out from that point forward.

Avatar image for falserelic
falserelic

5767

Forum Posts

0

Wiki Points

0

Followers

Reviews: 1

User Lists: 0

Math is my worst and most hated subject, and this thread reminded me of something that depresses me. Anyway best of luck to you man.

Avatar image for internetdotcom
InternetDotCom

4038

Forum Posts

133

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

@video_game_king said:

Are we all English majors?

I tell people I am an English major, because that sounds a lot better than "I have no idea what I am doing with my life oh no please kill me now"

That's what this masters in English I have screams.

Avatar image for fobwashed
fobwashed

2818

Forum Posts

388

Wiki Points

0

Followers

Reviews: 15

User Lists: 16

#25  Edited By fobwashed

Edited the OP with what I've currently got and hopefully a clearer idea of what I'm looking for.

@scrawnto said:

I don't think we ever got around to conic sections in any of my trigonometry or calculus classes. That seems like an odd gap in my mathematics education. I should probably check this stuff out on khan academy or something.

Don't mess with them. They're bad business...

@mlarrabee said:

You can't be an artist and a mathematician too. Pick one and be bad at the other.

I wish I could =[

@turboman said:

I'm in my periodic differential equations class right now, I'll get it for you when I leave.

I'd love to compare what you've got with what I've got. Ideally I'd like to trim down any equations I can as they'll take up valuable cpu time. Yea, I realize it's written really weird. Unfortunately I'm not an English Major =P

@megalombax said:

Hang on a sec...the way i understood it is that its a cone that is cutting through a vertical plane correct? Therefore, if the origin of the cone is along the z-axis, wouldn't that mean that if one can solve for the x-value, the y-value should be the same, since its the radius of a circle?

sorry, my illustration was bonkers. I updated. I need to come up with a way to solve for the two points of y given that the hA, vA, cA and distance can always change. So the cone can be angled at any point along y from its origin.

@trafalgarlaw said:

I'm not that great in geometry but start by making a formula for the varying angle and the cone. This isn't a simple x = y ekuation. You need a

x = 0

y = cos(vA) - radius

z = ???

I freaking wish...

@gkhan said:

I'm not entirely sure I understand the question. Are you saying that this is not a perfectly circular cone, that it's a cone that is sort of "squished"? And then are you asking, using only hA, vA and d, how do you get the y-coordinate of where the segment that goes along with the vertical angle hits the plane?

In other words, looking at that nice drawing you made, there are two right-angled triangles, one horizontal and one vertical. Two of the segments go along the plane, one vertically and one horizontally. As you said, the horizontal one is d*sin(hA), and you wish to find the length of the vertical one? Am I reading that right?

If so, you can use some standard trigonometry: the horizontal triangle is made up of three segments, with lengths d, d*sin(hA) and d*cos(hA). The d*cos(hA) segment is the one that goes from the origin along the z-axis, hitting the plane at (0,0). That segment is shared with the vertical triangle, so if the length of the segment you're trying to find is Y, then tan(vA) = Y / (d*cos(hA)). Then Y = d*cos(hA)*tan(vA).

Is that what you wanted?

EDIT: somehow I totally missed that @jediavenger1738 had provided this exact answer! Sorry duder, didn't see ya there.

No worries. I tried to clear up the question a bit. If you get something different please let me know =]

Avatar image for flasaltine
flasaltine

2547

Forum Posts

739

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

#26  Edited By flasaltine

Yep that updated post with the pictures is like nothing I had envisioned in my head. And the notation is so bad I cant be bothered to read the solution.

Avatar image for afabs515
afabs515

2005

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

@rorie said:
No Caption Provided

Sums up my feelings pretty nicely.

Avatar image for szlifier
szlifier

1518

Forum Posts

120

Wiki Points

0

Followers

Reviews: 0

User Lists: 4

Avatar image for development
development

3749

Forum Posts

61

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

I think you wanna... put the... x... on... that thing.

Avatar image for j0lter
j0lter

310

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

I'm currently in Calculus and you just blew my mind.

Avatar image for cale
CaLe

4567

Forum Posts

516

Wiki Points

0

Followers

Reviews: 0

User Lists: 1

#32  Edited By CaLe

I make a major of English so is am not able for help to you. Sorry for it. You make game in mathmatecks?

Avatar image for wait
wait

61

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 1

huh looks like you got yourself a problem

Avatar image for sinusoidal
Sinusoidal

3608

Forum Posts

20

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

#34  Edited By Sinusoidal

I am also decent at math and your solution looks good. It's a matter of finding the major and minor axes (a and b) of the ellipse that the cone makes through the xy plane and plopping those values and your value of x into x^2/a^2 + y^2/b^2 = 1 to solve for y values. If the vertical angle of your cone is such that the conic section is a parabola (vertical angle > 90 - 0.5*cone angle) then you will need a different formula for x and y.

Avatar image for tycobb
TyCobb

2036

Forum Posts

90

Wiki Points

0

Followers

Reviews: 1

User Lists: 0

#35  Edited By TyCobb
Avatar image for ssully
SSully

5753

Forum Posts

315

Wiki Points

0

Followers

Reviews: 0

User Lists: 3

You can't be an artist and a mathematician too. Pick one and be bad at the other.

I actually know multiple computer science majors who double majored in Art. And they are great at math. I was surprised too.

Avatar image for audiosnow
audiosnow

3926

Forum Posts

729

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

@ssully said:

@mlarrabee said:

You can't be an artist and a mathematician too. Pick one and be bad at the other.

I actually know multiple computer science majors who double majored in Art. And they are great at math. I was surprised too.

Make them stop. They're messing with a universal law.

Avatar image for deathstriker
Deathstriker

1271

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

Wow, I thought the topic of this thread said "meth" instead of math for a second lol.

Avatar image for laserguy
laserguy

550

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 1

I'm awesome at making cakes!

Avatar image for shadowskill11
ShadowSkill11

1877

Forum Posts

48

Wiki Points

0

Followers

Reviews: 0

User Lists: 5

So... Why don't you go to a lab after class instead of ask giantbomb video game players how to do your homework? Never crossed my mind to ask anyone here how to trouble shoot a Cisco core switch running in VSS mode (think SLI for switches) from work.