MCPcopy Create free account
hub / github.com/DavidHDev/react-bits / addFace

Method addFace

src/content/Components/InfiniteMenu/InfiniteMenu.jsx:120–125  ·  view source on GitHub ↗
(...args)

Source from the content-addressed store, hash-verified

118 }
119
120 addFace(...args) {
121 for (let i = 0; i < args.length; i += 3) {
122 this.faces.push(new Face(args[i], args[i + 1], args[i + 2]));
123 }
124 return this;
125 }
126
127 get lastVertex() {
128 return this.vertices[this.vertices.length - 1];

Callers 2

constructorMethod · 0.45
constructorMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected