If I have the length of the hypotenuse and its angle, how can I find the neighboring and the opposite?
I write this in JavaScript, and I'm just trying to find the coordinates of the screen (x / y), where the end of the hypotenuse is given by the length and angle. So in addition, I need to know how to convert from Cartesian coordinates to screen coordinates.
Sorry, this is probably a pretty dumb question.
Here is a sketch if I'm unclear:

So something like this:
function getLineEndCoords(originX, originY, hypotenuse, angle){
return [x,y]
}
Also, if anyone knows good JS libraries for this kind of material (isometric drawings related to math mapping) that would be convenient.
source
share