import type { Attribs , IHiccupShape } from "@thi.ng/geom-api" ; import type { Vec } from "@thi.ng/vectors" ; import { set } from "@thi.ng/vectors/set" ; import { __copyAttribs } from "../internal/copy.js" ; export class Circle implements IHiccupShape { constructor ( public pos = [ 0 , 0 ] , public r = 1 , public attribs ? ) { } get type ( ) { return "circle" ; } copy ( ) { return new Circle ( set ( [ ] , this . pos ) , this . r , __copyAttribs ( this ) ) ; } toHiccup ( ) { return [ "circle" , this . attribs , this . pos , this . r ] ; } }