Calculate the angle (in radians) of the line from start to end, i.e. -atan(end.y - start.y, end.x - start.x)
startPt = [0, 0] endPt = [1, 0] angle = raylib.Vector2LineAngle(startPt, endPt) print angle // 0 (horizontal line pointing right)
There was an error while loading. Please reload this page.