Browse Source

Round caps!

infinite
A.Olokhtonov 2 years ago
parent
commit
e056d6c698
  1. 5
      client/math.js
  2. 23652
      client/webgl.js

5
client/math.js

@ -1,3 +1,8 @@ @@ -1,3 +1,8 @@
function point_right_of_line(a, b, p) {
// a bit of cross-product tomfoolery (we check sign of z of the crossproduct)
return ((b.x - a.x) * (a.y - p.y) - (a.y - b.y) * (p.x - a.x)) <= 0;
}
function rdp_find_max(points, start, end) {
const EPS = 0.25;

23652
client/webgl.js

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save