MCPcopy Create free account
hub / github.com/Code-Bullet/Jump-King / _quad

Function _quad

libraries/p5.js:35032–35038  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

35030 x4+'|'+y4;
35031 if(!this.geometryInHash(gId)){
35032 var _quad = function(){
35033 this.vertices.push(new p5.Vector(x1,y1,0));
35034 this.vertices.push(new p5.Vector(x2,y2,0));
35035 this.vertices.push(new p5.Vector(x3,y3,0));
35036 this.vertices.push(new p5.Vector(x4,y4,0));
35037 this.uvs.push([0, 0], [1, 0], [1, 1], [0, 1]);
35038 };
35039 var quadGeom = new p5.Geometry(2,2,_quad);
35040 quadGeom.computeNormals();
35041 quadGeom.faces = [[0,1,2],[2,3,0]];

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected