mirror of
https://github.com/DigvijaysinhGohil/Godot-Shader-Lib.git
synced 2025-09-20 20:35:57 +08:00
4 lines
113 B
Plaintext
4 lines
113 B
Plaintext
float manhattan_distance_2d(vec2 point1, vec2 point2) {
|
|
vec2 d = point1 - point2;
|
|
return abs(d.x) + abs(d.y);
|
|
} |