# Class: VSRectVector

## VSRectVector

#### new VSRectVector()

  Custom container class for VSRect objects.
  Used in conjunction with VisageDetector.detectFaces function.
  Sample usage:

      function onDetect()
      {
         //Instantiate an VSRectVector instance where detection results will be stored
         boundingBoxArray = new VisageModule.VSRectVector();
         //Specify the maximum number of faces that will be detected in the image
         maxFaces = 10;
         for (var i = 0; i < maxFaces; ++i)
         {
             boundingBox = new VisageModule.VSRect();
             boundingBoxArray.push_back(boundingBox);
         }
         //Detect face and facial features in an image
         var numberOfFaces = m_Detector.detectFaces(frameWidth, frameHeight, ppixels, boundingBoxArray, maxFaces);
         //Fetch and draw bounding box on the first returned face
         if (numberOfFaces > 0)
         {
             drawBoundingBox(boundingBoxArray.get(0));
         }
      }

### Methods

#### push_back(vsrect)

  Add existing VSRect object.

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `vsrect` | VSRect | VSRect object to be added.

#### get(index) → {VSRect}

  Get VSRect object from the vector specified by index parameter.

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `index` | number | position of the VSRect object to be fetched.

  ##### Returns:

  VSRect object located on the location specified by index parameter
  Type
    VSRect

#### delete()

  Release the memory allocated to the VSRectVector object.