-
Notifications
You must be signed in to change notification settings - Fork 2
raylib.Vector2LineAngle
JoeStrout edited this page Apr 29, 2026
·
2 revisions
Calculate angle defined by a two vectors line NOTE: Parameters need to be normalized Current implementation should be aligned with glm::angle
| Parameter | Default Value | Note |
|---|---|---|
| start | [0, 0] | |
| end | [0, 0] |
| Condition | Return Value |
|---|---|
| (always) | number |
startPt = [0, 0]
endPt = [1, 0]
angle = raylib.Vector2LineAngle(startPt, endPt)
print angle // 0 (horizontal line pointing right)