[ 3 / biz / cgl / ck / diy / fa / ic / jp / lit / sci / vr / vt ] [ index / top / reports ] [ become a patron ] [ status ]
2023-11: Warosu is now out of extended maintenance.

/sci/ - Science & Math


View post   

File: 5 KB, 500x500, howdo.png [View same] [iqdb] [saucenao] [google]
4085343 No.4085343 [Reply] [Original]

Hey /sci/, I'm terrible at math, I'm making a game (learning C). How could I go about finding the angle of marked red? Any links or help would be appreciated.

>> No.4085345

Use a compass.

>> No.4085346

>>4085345
hue hue

>> No.4085350

Use vector and scalar product
Or get the fuckin lengths of that triangle you draw and use 180-sin
thats the noobest maths there is

>> No.4085358

tan(180-x) = 35/60
180-x = 30.26
x = 149.73 degrees

>> No.4085359

It has a right angle, so you can use simple trig to find the interior angles, and then you can easily find the exterior ones.

>> No.4085365
File: 36 KB, 473x536, 1322673871533.png [View same] [iqdb] [saucenao] [google]
4085365

There you go. 140°C

>> No.4085383

The question is whether you really do want an angle.
I try to avoid calculating angles as much as possible, as it is extremly costly.
A trivial way to describe a direction, is by ratio. (If the line goes right by x, it goes up by y. Left and down are simply negative values.)

>> No.4085388

>>4085383
I just wet my pants. Thank you. I think this is what I wanted.

>> No.4085391
File: 76 KB, 590x568, 1319223890491.jpg [View same] [iqdb] [saucenao] [google]
4085391

oh and
>putting lines through your zero's
>ISHYGDDT

>> No.4085395

>>4085391
>Not putting lines through your zeros.
Have not getting mixed up with 0, O, o.

>> No.4085396

>>4085391

He's probably American.

>> No.4085400

>>4085391
Take your pills.

>> No.4085402

>>4085388
Probably good to normalize the (absolute) largest value to 1 as well.
So if |x| > |y|, you take x/|x|, y/|x|.

>> No.4085403

>>4085395
enjoy mixing up your zeros and thetas

>> No.4085405

>>4085391
Did you forget to take your pills today, EK? Maybe you should take extra (like five times as much) to make up for missing a few days.

>> No.4085406

>>4085395
if it a number, its kinda obvious it will be a zero.
who the fuck would ever right '2o11' etc

>> No.4085408

>>4085406
You just did, retard. Take your pills

>> No.4085412

>>4085405
lol,
>implying im stupid enough to overdose
and i didnt miss a few days, wtf?

>> No.4085415

>>4085395
Are you fucking retarded? Learn to write, for fuck sake.

>> No.4085416
File: 257 KB, 456x346, facepalm.png [View same] [iqdb] [saucenao] [google]
4085416

>>4085406
*write
...fuck

>> No.4085418

>>4085406
>would ever right
Seriously, your pills, take them.

>> No.4085419

>>4085406
>writing 2o11
>claims to be a woman
Yep, this confirms you're a woman, because only women would be stupid enough to do this.

>> No.4085423

Looks like someone hasn't taken their pills.

>> No.4085471

srsly you guise. stop trolling EK. I didn't expect the science board to be so uncivilised.