Quad¶
Overview¶
Creates a position/normal/uv mapped quad based on vertices in a high-performance way.
@author Jonathan Olson <jonathan.olson@colorado.edu>
Class Quad¶
Constructor¶
new Quad( p0x : number, p0y : number, p0z : number, p1x : number, p1y : number, p1z : number, p2x : number, p2y : number, p2z : number, p3x : number, p3y : number, p3z : number, nx : number, ny : number, nz : number )¶
Instance Methods¶
set( p0x : number, p0y : number, p0z : number, p1x : number, p1y : number, p1z : number, p2x : number, p2y : number, p2z : number, p3x : number, p3y : number, p3z : number, nx : number, ny : number, nz : number )¶
Static Methods¶
updateArrays( positionArray : Float32Array | null, normalArray : Float32Array | null, uvArray : Float32Array | null, p0x : number, p0y : number, p0z : number, p1x : number, p1y : number, p1z : number, p2x : number, p2y : number, p2z : number, p3x : number, p3y : number, p3z : number, nx : number, ny : number, nz : number, offset, offsetPosition : Vector3 ) : number¶
Updates provided geometry arrays given the specific size.
@param positionArray @param normalArray @param uvArray @param p0x @param p0y @param p0z @param p1x @param p1y @param p1z @param p2x @param p2y @param p2z @param p3x @param p3y @param p3z @param nx @param ny @param nz @param offset - How many vertices have been specified so far? @param offsetPosition - How to transform all the points @returns - The offset after the specified vertices have been written