.. _api-zoo-geometry-multipoint: ZOO.Geometry.MultiPoint ======================= MultiPoint is a collection of Points. Create a new instance with the :ref:`ZOO.Geometry.MultiPoint ` constructor. Inherits from - :ref:`ZOO.Geometry.Collection ` Properties ---------- .. list-table:: :widths: 12 50 :header-rows: 1 * - NAME - DESCRIPTION * - :ref:`componentTypes ` - {Array(String)} An array of class names representing the types of components that the collection can include. Functions --------- .. list-table:: :widths: 15 50 :header-rows: 1 * - NAME - DESCRIPTION * - :ref:`ZOO.Geometry.MultiPoint ` - Create a new MultiPoint Geometry * - :ref:`addPoint ` - rapper for ZOO.Geometry.Collection.addComponent * - :ref:`removePoint ` - Wrapper for ZOO.Geometry.Collection.removeComponent **Properties** .. _componentTypes: componentTypes ``{Array(String)}`` An array of class names representing the types of components that the collection can include. A null value means the component types are not restricted. **Functions** .. _ZOO.Geometry.MultiPoint: ZOO.Geometry.MultiPoint Create a new MultiPoint Geometry *Parameters* ``components`` {Array(:ref:`ZOO.Geometry.Point `)} *Returns* :ref:`{ZOO.Geometry.MultPoint} ` .. _addPoint: addPoint :: addPoint: function(point,index) Wrapper for :ref:`ZOO.Geometry.Collection.addComponent ` *Parameters* | ``point`` :ref:`{ZOO.Geometry.Point} ` Point to be added | ``index {Integer}`` Optional index .. _removePoint: removePoint :: removePoint: function(point) Wrapper for :ref:`ZOO.Geometry.Collection.removeComponent ` *Parameters* ``point`` :ref:`{ZOO.Geometry.Point} ` Point to be removed