Dungeon Souls Editor Quick Onboarding Modules Items Sprites Functions Steam Workshop Contact

pointDirection

Returns the angle between two given points. The angle is in respect from the first point to the second point.

Arguments and Return

Argument Name Argument Type Description
x1 realThe x coordinate of the first point.
y1 realThe y coordinate of the first point.
x2 realThe x coordinate of the second point.
y2 realThe y coordinate of the second point.

Return

Return Type Description
RealThe angle between the two points (in degrees).