MCPcopy Create free account
hub / github.com/phaserjs/phaser / makeLine

Function makeLine

tests/geom/intersects/TriangleToLine.test.js:6–9  ·  view source on GitHub ↗
(x1, y1, x2, y2)

Source from the content-addressed store, hash-verified

4{
5 // Helper: create a mock line with x1,y1,x2,y2
6 function makeLine(x1, y1, x2, y2)
7 {
8 return { x1: x1, y1: y1, x2: x2, y2: y2 };
9 }
10
11 // Helper: create a mock triangle with an axis-aligned right triangle
12 // vertices: (0,0), (100,0), (0,100)

Callers 2

makeTriangleFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…