Skip to main content
gamedev.net
🔒 Locked

basic math(me thinks) problem

Started by Overburn 2 replies 900+ views
Original Post
Overburn
Overburn
ok so i got this: points A(0,0) B(x,y) AB=2 and the angle between AB and the X axis (Ox) is 25 degrees. how do i get the coordinates of B? if you could tell me a general formula i'd be grateful :D
Einstein once said that only the universe and human stupidity are infinite. He wasn't too sure about the universe though...
stonemetal
stonemetal
x = AB * cos Ox
y = AB * sin Ox
Overburn
Overburn
oh and does this change if a has other coordinates?
Einstein once said that only the universe and human stupidity are infinite. He wasn't too sure about the universe though...
Ignifex
Ignifex
x = AB * cos Ox + A.x
y = AB * sin Ox + A.y

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.