Represents a vertex inside a curve. More...
#include <Curve.h>
Public Member Functions | |
Vertex (double x, double y, float s, bool isControl) | |
Creates a new Vertex. | |
Vertex (vec2d p, float s, float l, bool isControl) | |
Creates a new Vertex. | |
Vertex (const Vertex &p) | |
Creates a copy of the given Vertex. | |
Public Attributes | |
float | s |
Pseudo curvilinear coordinate along the curve. | |
float | l |
Real curvilinear coordinate along the curve. | |
bool | isControl |
If this point is a control or regular vertex. |
Represents a vertex inside a curve.
Determines the position and aspect of the curve.
proland::Vertex::Vertex | ( | double | x, | |
double | y, | |||
float | s, | |||
bool | isControl | |||
) | [inline] |
Creates a new Vertex.
x | x coordinate. | |
y | y coordinate. | |
s | pseudo curvilinear coordinate. | |
isControl | if this point is a control or regular vertex. |
proland::Vertex::Vertex | ( | vec2d | p, | |
float | s, | |||
float | l, | |||
bool | isControl | |||
) | [inline] |
Creates a new Vertex.
p | XY coords | |
s | pseudo curvilinear coordinate. | |
l | real curvilinear coordinate. | |
isControl | if this point is a control or regular vertex. |
proland::Vertex::Vertex | ( | const Vertex & | p | ) | [inline] |
If this point is a control or regular vertex.
float proland::Vertex::l |
Real curvilinear coordinate along the curve.
This coordinate is not automatically computed. It must be computed explicitely with Curve::computeCurvilinearLength(). The initial value is -1.
float proland::Vertex::s |
Pseudo curvilinear coordinate along the curve.
This coordinate is computed in a recursive way during curve subdivisions (see Curve::flatten()). For top level curves it must be computed explicitely with Curve::computeCurvilinearCoordinates(). The initial value is -1.