#include <Line2D.h>
List of all members.
Detailed Description
- Author:
- Susanne Maur
Definition at line 28 of file Line2D.h.
Constructor & Destructor Documentation
Creates a new line.
- Parameters:
-
start | Start point of the line. |
end | End point of the line. |
Definition at line 38 of file Line2D.h.
Creates a new line.
- Parameters:
-
start | Start point of the line. |
vec | The vector from start to end point of the line. |
Definition at line 50 of file Line2D.h.
Destructor does nothing.
Definition at line 59 of file Line2D.h.
Member Function Documentation
Returns the minimum euclidean distance of the given point to the line.
- Parameters:
-
point | Point of which the distance to the line will be calculated. |
- Returns:
- Distance of point to line.
Definition at line 133 of file Line2D.h.
Returns the end point of the line.
- Returns:
- End point of the line.
Definition at line 95 of file Line2D.h.
Returns the point of the line with the minimal distance to a given point. This algorithm returns always a point which lies on the line. Therefor it is not always the root point. See also: getRootPoint.
- Parameters:
-
point | Point to which the distance is calculated. |
- Returns:
- Root point of the line.
Returns the intersection point of this line with a second line. The intersection point is element of this line.
- Parameters:
-
line | The line with which the intersection is calculated. |
- Returns:
- Intersection point.
Returns the parameter t which identifies the intersection point of this line with a second line. The intersection point is element of this line.
- Parameters:
-
line | The line with which the intersection is calculated. |
- Returns:
- Parameter t which identifies the intersection point on the line.
Returns the normal of the line.
- Returns:
- Normal of the line.
Definition at line 169 of file Line2D.h.
Returns the point of the line with the minimal distance to a given point. This algorithm may return a point which lies on the extension of the line and not on itself. See also: getClosestPoint.
- Parameters:
-
point | Point to which the distance is calculated. |
- Returns:
- Root point of the line.
Definition at line 157 of file Line2D.h.
Returns the gradient of the line.
- Returns:
- Gradient of the line.
Returns the length of the line.
- Returns:
- Length of the line.
Definition at line 124 of file Line2D.h.
bool Line2D::operator== |
( |
const Line2D & |
line | ) |
const [inline] |
Rotates the line round the origin.
- Parameters:
-
angle | The angle of rotation in radiants. |
Definition at line 143 of file Line2D.h.
Sets the end point of the line to a new value.
- Parameters:
-
end | End point of the line. |
Definition at line 77 of file Line2D.h.
Sets the start point of the line to a new value.
- Parameters:
-
start | Start point of the line. |
Definition at line 65 of file Line2D.h.
Returns the start point of the line.
- Returns:
- Start point of the line.
Definition at line 86 of file Line2D.h.
Returns a vector from the start to the end of the line.
- Returns:
- Vector to the end point of the line.
Definition at line 104 of file Line2D.h.
- Returns:
- Vertices, e.g. for use in a VectorObject
- Parameters:
-
substeps | number of linear interpolation steps between start and end |
Member Data Documentation
Start point of the line.
Definition at line 215 of file Line2D.h.
Vector from the start to the end of the line.
Definition at line 220 of file Line2D.h.
The documentation for this class was generated from the following file: