.. _api-zoo-geometry-curve: ZOO.Geometry.Curve ================== A Curve is a MultiPoint, whose points are assumed to be connected. To this end, we provide a "getLength()" function, which iterates through the points, summing the distances between them. Inherits from - :ref:`ZOO.Geometry.MultiPoint ` 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.Curve ` - * - :ref:`getLength ` - {Float} The length of the curve **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.Curve: ZOO.Geometry.Curve *Parameters* ``point`` {Array(:ref:`ZOO.Geometry.Point `)} .. _getLength: getLength :: getLength: function() *Returns* ``{Float}`` The length of the curve