pixi-jsFunctions
Function: getMaxMiterRatio()
> getMaxMiterRatio(path, miterLimit): number
Defined in: node_modules/pixi.js/lib/scene/graphics/shared/utils/getMaxMiterRatio.d.ts:11
Internal
Computes the maximum miter ratio from polygon corner angles in a graphics path. The miter ratio determines how much the stroke padding must expand to contain miter joins at sharp angles. Returns a value >= 1, clamped by the miterLimit.
Parameters
path
The graphics path containing polygon shapes
miterLimit
number
The maximum allowed miter ratio
Returns
number
The maximum miter ratio found in all polygon corners, clamped by miterLimit