#include <Bezier2D.h>

Public Member Functions | |
| Bezier2D () | |
| Bezier2D (const Bezier2D *b) | |
| Bezier2D (Vector2D *p0, Vector2D *p1, Vector2D *p2, Vector2D *p3) | |
| Bezier2D (double p0x, double p0y, double p1x, double p1y, double p2x, double p2y, double p3x, double p3y) | |
| Bezier2D (double arr[]) | |
| char * | toString () |
Public Attributes | |
| Vector2D | p0 |
| Vector2D | p1 |
| Vector2D | p2 |
| Vector2D | p3 |
The Bezier2D represents a two dimensional cubic Bezier. The four points can be used in any way, just make sure to use it the same way at every place in your program.
filename: Bezier2D.h
| sonus::Bezier2D::Bezier2D | ( | ) |
Default Constructor.
| sonus::Bezier2D::Bezier2D | ( | const Bezier2D * | b | ) |
Copy constructor.
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
| b | The object to be copied |
Alternative constructor.
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
| p0 | The first vector. | |
| p1 | The second vector. | |
| p2 | The third vector. | |
| p3 | The fourth vector. |
| sonus::Bezier2D::Bezier2D | ( | double | p0x, | |
| double | p0y, | |||
| double | p1x, | |||
| double | p1y, | |||
| double | p2x, | |||
| double | p2y, | |||
| double | p3x, | |||
| double | p3y | |||
| ) |
Alternative Constructor. Converts double values to Vector2D objects.
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
| sonus::Bezier2D::Bezier2D | ( | double | arr[] | ) |
Alternative Constructor. Converts double array to Vector2D objects.
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
| arr | The array to be converted. Must have a length of eight. |
| char* sonus::Bezier2D::toString | ( | ) | [virtual] |
1.5.4