Jump to content

Searching for a math genius


Shadowing

Recommended Posts

I'm completly lost on how to solve this. The first theory i had didnt work lol :P

I"m some what decent with trionometry but i just cant figure out how to solve it.

 

Made a picture to show what im trying to do

I need to find the global location of S

which is the bx and by

Really hope someone knows how to do this

 

 

 

grid1.jpg

Link to comment
Share on other sites

S is traveling from P1 to P2 and its 40 percent there already

I already know the distance its 1627.88. using the Pythagorean theorem like you mentioned

I need to find where S is at right now on the map. I think i need to use Tangent and Cosine to figure it out.

 

 

S is located

Bx ___ by ____

also i need to know the bx by on a global scale not just with in the block

Link to comment
Share on other sites

The pythagorean theorem  only finds the Hypotenuse of a triangle which is 1 number

and finding 40 percent of that is only giving me the location of where its at on the hypotenuse

that doesnt tell me where S is located on the map

Link to comment
Share on other sites

adding 40 percent to the P1 global positions "bx" and subtracting 40 percent from P1 global postiion "by" does give me where its at

 

 

for example P1 "bx" is 1000. so add 40 percent which is 1400. which places S at "bx" 1400

 

but if i was going the oppisite direction it would be reversed

subtract 40% to "bx" and add 40% to "by"

 

trying to think writing a statement for that would work.

 

so really this is a geometry problem maybe excluding the trig i used to find distance. I'm going to look up gemetry formulas

Link to comment
Share on other sites

Find the ratio of how many px up it moves for each px laterally. Then it should be quite simple to find the position, especially if you have the distance travelled already.

You can use the positions of P1 and P2 to figure out this ratio, by taking P2-P1 for each X and Y then divide the two results with each other.

Link to comment
Share on other sites

Thanks responces everyone

 

I got it figured out.

 

You are right christian your way is kinda like how i got it figured out. I dont have to devide anything though

 

xd = P1_bx + ((P2_ bx - P1_bx ) * percent traveled which was 40 percent)

yd = P1_by + ((P2_by - P1_by)  * percent traveled which was 40 percent)

 

 

so filling in the numbers would be

 

bx = 1000 + ((2200 - 1000) * .40)

by = 1700 + ((600 - 1700)  * .40)

 

return

bx = 1480

by = 1260

 

 

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.