Developer Documentation
Centre for Vision, Speech & Signal Processing
USER IN NAMESPACE AMMA TREE ROOT AMMA SEARCH AMMA HOME
 

  PUBLIC
Line3dPVC::Line3dPVC(void)
Line3dPVC::Line3dPVC(const Point3dC &,const Point3dC &)
Line3dPVC::Line3dPVC(const Point3dC &,const Vector3dC &)
Line3dPVC::Line3dPVC(const Line3dPVC &)
Line3dPVC::FirstPoint(void) const
Line3dPVC::SecondPoint(void) const
Line3dPVC::MiddlePoint(void) const
Line3dPVC::PointT(ParameterT) const
Line3dPVC::Vector(void) const
Line3dPVC::LinePP(void) const
Line3dPVC::Distance(const Line3dPVC &)
Line3dPVC::Distance(const Point3dC &) const
Line3dPVC::ShortestLine(const Line3dPVC &) const
Line3dPVC::Intersection(const Line3dPVC &) const
Line3dPVC::ProjectionInto(const PlaneABCD3dC &) const
Line3dPVC::operator>>(istream &,Line3dPVC &)
Line3dPVC::PointT(Line3dPVC::ParameterT) const
Line3dPVC
 
Line determined by one point and a vector in 3D space
 
include "amma/Line3dPV.hh"
User Level:Default
Library:Mag3
Example:exMat2d.cc
Section:Geometry.3-D
In Scope:std

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