|
Developer Documentation |
|
Centre for Vision, Speech & Signal Processing |
Comments:
The Line3dPVC class represents the line in 3 dimensional Euclidian
space. The line is represented by one point and its direction vector.
Typedefs:
- typedef RealT DistanceT;
-
Euclidian distance of geometrical objects.
- typedef RealT ParameterT;
-
Arbitrary parameter.
Variables:
- Point3dC point;
-
the first point of the line
- Vector3dC direction;
-
the direction of the line
Methods:
- Line3dPVC()
-
Creates the non-existing line (0,0,0) [0,0,0].
- Line3dPVC(const Point3dC & first,const Point3dC & second)
-
Creates the line passing through the points 'first' and
second.
- Line3dPVC(const Point3dC & a,const Vector3dC & v)
-
Creates the line passing through the point 'a' and with
the direction 'v'.
- Line3dPVC(const Line3dPVC & line)
-
Copy constructor.
Access to elements of the line.
-------------------------------
- const Point3dC & FirstPoint() const
-
Returns the point of the line.
- Point3dC SecondPoint() const
-
Returns the point which is the end point of the direction
vector placed in the first point of the line.
- Point3dC MiddlePoint() const
-
Returns the point which is in the middle of the FirstPoint()
and the SecondPoint() of the line segment.
- Point3dC PointT(ParameterT lambda) const
-
Returns the point FirstPoint() + lambda * direction.
- const Vector3dC & Vector() const
-
Returns the direction vector of this line.
- Line3dPPC LinePP() const
-
Returns the line segment represented by the start point and the end
point. The start point is equal to the start point of this line.
The end point of the returned line is determined by the sum of the
start point and the direction vector of this line.
Geometrical computations.
-------------------------
- DistanceT Distance(const Line3dPVC & line)
-
Returns the shortest distance between the lines.
- DistanceT Distance(const Point3dC & p) const
-
Returns the distance of the point 'p' from this line.
- Line3dPVC ShortestLine(const Line3dPVC & line) const
-
Returns the line which passes through the closest points
of both lines. The returned line has the first point on this
line and the second point on the 'line'.
- Point3dC Intersection(const Line3dPVC & l) const
-
Returns the point which belongs to both lines. If the lines
have no intersection, the function returns the point which
lies in the middle of the shortest line segment between both lines.
- Line3dPVC ProjectionInto(const PlaneABCD3dC & p) const
-
Returns the line which is the orthogonal projection of this
line into the plane 'p'.
- istream & operator>>(istream & inS,Line3dPVC & line)
-
- Point3dC PointT(Line3dPVC::ParameterT lambda) const
-
|
Programmer:Radek Marik, Documentation by CxxDoc: Tue Mar 20 10:49:27 2001
|