Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/melonjs/melonJS
/ polygon.spec.js
File
polygon.spec.js
packages/melonjs/tests/polygon.spec.js:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
import
{ beforeEach, describe, expect, it } from
"vitest"
;
2
import
{ Matrix2d, Polygon, Vector2d } from
"../src/index.js"
;
3
4
describe(
"Shape : Polygon"
, () => {
Callers
nothing calls this directly
Calls
15
getIndices
Method · 0.80
isConvex
Method · 0.80
getBounds
Method · 0.65
clone
Method · 0.65
floor
Method · 0.65
setShape
Method · 0.45
translate
Method · 0.45
shift
Method · 0.45
rotate
Method · 0.45
scale
Method · 0.45
scaleV
Method · 0.45
transform
Method · 0.45
Tested by
no test coverage detected