Neurotic Pink Mongooses

    @iro/cox
    TypeScript icon, indicating that this package has built-in type declarations

    1.0.2 • Public • Published

    cox

    Collision engine may evolve into physical engine.

    Install

    npm i @iro/cox
    

    Usage

    import {collide, Polygon, Circle} from '@iro/cox'
    
    const polygon = new Polygon({
      x: 10,
      y: 20,
      vertices: [-60, -60, -120, 0, -60, 60, 60, 60, 120, 0, 60, -60]
    })const circle = new Circle({
      x: 60,
      y: 60,
      r: 50
    })collide(polygon, circle) // output: true

    Keywords

    none

    Install

    npm i @iro/cox

    DownloadsWeekly Downloads

    1

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    24.9 kB

    Total Files

    16

    Last publish

    Collaborators

    • jetlua