.. _api_Spline: Spline ====== Inherited: :ref:`Component` .. _api_Spline_description: Description ----------- .. _api_Spline_public: Public Methods -------------- +-----------------------------------------+-----------------------------------------------------------------------------------+ | bool | :ref:`closed` () const | +-----------------------------------------+-----------------------------------------------------------------------------------+ | void | :ref:`insertPoint` (int index, const Spline::Point & point) | +-----------------------------------------+-----------------------------------------------------------------------------------+ | :ref:`Spline::Point` | :ref:`point` (int index) const | +-----------------------------------------+-----------------------------------------------------------------------------------+ | int | :ref:`pointsCount` () const | +-----------------------------------------+-----------------------------------------------------------------------------------+ | void | :ref:`removePoint` (int index) | +-----------------------------------------+-----------------------------------------------------------------------------------+ | void | :ref:`setClosed` (bool closed) | +-----------------------------------------+-----------------------------------------------------------------------------------+ | void | :ref:`setPoint` (int index, const Spline::Point & point) | +-----------------------------------------+-----------------------------------------------------------------------------------+ | :ref:`Vector3` | :ref:`value` (float position) | +-----------------------------------------+-----------------------------------------------------------------------------------+ .. _api_Spline_static: Static Methods -------------- None .. _api_Spline_methods: Methods Description ------------------- .. _api_Spline_8d2eb5a4: bool **Spline::closed** () const Returns true if is the spline is closed; otherwise false. **See also** setClosed(). ---- .. _api_Spline_4fbe682c: void **Spline::insertPoint** (int *index*, :ref:`Spline::Point` & *point*) Inserts a *point* at the given index. ---- .. _api_Spline_ac204f53: :ref:`Spline::Point` **Spline::point** (int *index*) const Returns the point at the given index. **See also** setPoint(). ---- .. _api_Spline_9ce57348: int **Spline::pointsCount** () const Returns the number of points in the spline. ---- .. _api_Spline_98e1756a: void **Spline::removePoint** (int *index*) Removes the point at the given index. ---- .. _api_Spline_cfa91627: void **Spline::setClosed** (bool *closed*) Sets whether the spline is closed. **See also** closed(). ---- .. _api_Spline_530bf1a7: void **Spline::setPoint** (int *index*, :ref:`Spline::Point` & *point*) Sets the *point* at the given index. **See also** point(). ---- .. _api_Spline_2f83d0cb: :ref:`Vector3` **Spline::value** (float *position*) Returns the value of the spline at the given normalized position.