Polygon: pts: Vec2[]transform(m: Mat4): Polygonbbox(): Rectarea(): numberclone(): Polygoncollides(shape: ShapeType | Vec2): booleancontains(point: Vec2): booleanraycast(origin: Vec2, direction: Vec2): RaycastResultrandom(): Vec2cut(a: Vec2, b: Vec2): [Polygon | null, Polygon | null]