|
Darwin Neuroevolution Framework
|
A spline aproximation. More...
#include <outline_2d.h>
Public Member Functions | |
| Outline ()=default | |
| Creates an empty outline. | |
| Outline (const Polygon &control_points, int resolution) | |
| Create a spline outline. | |
| const vector< Node > & | nodes () const |
| Returns the outline nodes. | |
| Outline | offset (double offset) const |
| Returns a new outline at the specified offset. | |
| Outline | makeEquidistant () const |
| Returns a new outline with the nodes spaced at equal distance from each other. | |
| Polygon | toPolygon () const |
| Returns the polygon equivalent. | |
| const Node & | findClosestNode (const Vector2d &pos) const |
| Returns the closest node to the specified point. More... | |
| void | clear () |
| Clears the outline. | |
| bool | empty () const |
| Returns true if the outline is empty. | |
A spline aproximation.
| const Outline::Node & math::Outline::findClosestNode | ( | const Vector2d & | pos | ) | const |
Returns the closest node to the specified point.
1.8.14