MCPcopy Index your code
hub / github.com/processing/p5.js / transformVertices

Method transformVertices

src/webgl/GeometryBuilder.js:31–37  ·  view source on GitHub ↗

* @private * Applies the current transformation matrix to each vertex.

(vertices)

Source from the content-addressed store, hash-verified

29 * Applies the current transformation matrix to each vertex.
30 */
31 transformVertices(vertices) {
32 if (!this.hasTransform) return vertices;
33
34 return vertices.map(v =>
35 this.renderer.states.uModelMatrix.multiplyPoint(v)
36 );
37 }
38
39 /**
40 * @private

Callers 1

addGeometryMethod · 0.95

Calls 1

multiplyPointMethod · 0.45

Tested by

no test coverage detected