build/module/lib/atoms/VertexPrimitive.js
/**
     * Constructs a VertexPrimitive and initializes the vertices property with the required number of vertices.
     *
     * @param mode
     * @param numVertices
     * @param numCoordinates The number of coordinates required to label each vertex.
     */
Constructs a VertexPrimitive and initializes the vertices property with the required number of vertices.
@param mode
@param numVertices
@param numCoordinates The number of coordinates required to label each vertex.
Constructs a VertexPrimitive and initializes the vertices property with the required number of vertices . @param mode @param numVertices @param numCoordinates The number of coordinates required to label each vertex .
function VertexPrimitive(mode, numVertices, numCoordinates) {
        this.mode = mustBeInteger('mode', mode);
        mustBeInteger('numVertices', numVertices);
        mustBeGE('numVertices', numVertices, 0);
        mustBeInteger('numCoordinates', numCoordinates);
        mustBeGE('numCoordinates', numCoordinates, 0);
        this.vertices = [];
        for (var i = 0; i < numVertices; i++) {
            this.vertices.push(new Vertex(numCoordinates));
        }
    }
function VertexPrimitive ( mode , numVertices , numCoordinates ) { this . mode = mustBeInteger ( 'mode' , mode ) ; mustBeInteger ( 'numVertices' , numVertices ) ; mustBeGE ( 'numVertices' , numVertices , 0 ) ; mustBeInteger ( 'numCoordinates' , numCoordinates ) ; mustBeGE ( 'numCoordinates' , numCoordinates , 0 ) ; this . vertices = [ ] ; for ( var i = 0 ; i < numVertices ; i ++ ) { this . vertices . push ( new Vertex ( numCoordinates ) ) ; } }
Constructs a VertexPrimitive and initializes the vertices property with the required number of vertices.
Constructs a VertexPrimitive and initializes the vertices property with the required number of vertices .