Creates XY quad vertices
The default with no parameters will return a 2x2 quad with values from -1 to +1. If you want a unit quad with that goes from 0 to 1 you'd call it with
createXYQuadVertices(1, 0.5, 0.5); Copy
createXYQuadVertices(1, 0.5, 0.5);
If you want a unit quad centered above 0,0 you'd call it with
primitives.createXYQuadVertices(1, 0, 0.5); Copy
primitives.createXYQuadVertices(1, 0, 0.5);
the size across the quad. Defaults to 2 which means vertices will go from -1 to +1
the amount to offset the quad in X. Default = 0
the amount to offset the quad in Y. Default = 0
the created XY Quad vertices
Generated using TypeDoc
Creates XY quad vertices
The default with no parameters will return a 2x2 quad with values from -1 to +1. If you want a unit quad with that goes from 0 to 1 you'd call it with
If you want a unit quad centered above 0,0 you'd call it with