npm install @pixi/math-extras
import '@pixi/math-extras';
Via jsDelivr:
<!-- This script tag should be placed after pixi.min.js -->
<script src="https://cdn.jsdelivr.net/npm/@pixi/math-extras@7.x/dist/math-extras.min.js"></script>
Or via unpkg:
<!-- This script tag should be placed after pixi.min.js -->
<script src="https://unpkg.com/@pixi/math-extras@7.x/dist/math-extras.min.js"></script>