#[Closed]

20 messages · Page 1 of 1 (latest)

golden sluice
#

thats trigonometry

#

atan2 relates to rotation i think

grave jungle
#

atan2 takes the x and z of a vector and outputs the angle of y

#

It can take any number but thats the best way i've found to describe it

dim axle
#

@grave jungle what IS the angle though?

#

Like is the angle relative to the x and z differences from 0,0?

grave jungle
dim axle
# grave jungle yep

when you say it outputs the angle of y, are you saying y is just a placeholder or the angle in degrees, or is it getting the angle from 0,0 to the point on a 2d plane, with the X axis being the X axis and the Z axis being the Y axis?

dim axle
#

is it just positive x axis

grave jungle
#

i think

dim axle
#

also if the point is (-100, 0) would it output 180?

#

and then if the point is (0, -100) would it output 270 or -90

#

or none

grave jungle
grave jungle
dim axle
#

so the max is 180 and the min is -179