# Class: GeometryCollection

## PDFNet. GeometryCollection

#### new GeometryCollection()

  [Missing documentation]

### Methods

#### destroy()

  Destructor

#### snapToNearest(x, y)

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `x` | number |
  `y` | number |

  ##### Returns:

  A promise that resolves to an object of type: "point"

  Type
    PDFNet.Point

#### snapToNearestPixel(x, y, dpi)

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `x` | number |
  `y` | number |
  `dpi` | number |

  ##### Returns:

  A promise that resolves to an object of type: "point"

  Type
    PDFNet.Point

#### Search results