CMS 3D CMS Logo

Public Types | Public Member Functions | Private Attributes

Line Class Reference

#include <Line.h>

List of all members.

Public Types

typedef GlobalVector DirectionType
typedef GlobalPoint PositionType

Public Member Functions

GlobalPoint closerPointToLine (const Line &aLine) const
DirectionType direction () const
GlobalVector distance (const GlobalPoint &aPoint) const
GlobalVector distance (const Line &aLine) const
 Line (PositionType &pos, DirectionType &dir)
 Line ()
PositionType position () const
 ~Line ()

Private Attributes

DirectionType theDir
PositionType thePos

Detailed Description

A line in 3D space.

Definition at line 10 of file Line.h.


Member Typedef Documentation

Definition at line 14 of file Line.h.

Definition at line 13 of file Line.h.


Constructor & Destructor Documentation

Line::Line ( ) [inline]

Definition at line 16 of file Line.h.

{}
Line::Line ( PositionType pos,
DirectionType dir 
) [inline]

Definition at line 19 of file Line.h.

                                               :
  thePos(pos), theDir(dir.unit()) {}
Line::~Line ( ) [inline]

Definition at line 22 of file Line.h.

{};

Member Function Documentation

GlobalPoint Line::closerPointToLine ( const Line aLine) const [inline]
DirectionType Line::direction ( ) const [inline]
GlobalVector Line::distance ( const Line aLine) const [inline]
GlobalVector Line::distance ( const GlobalPoint aPoint) const [inline]
PositionType Line::position ( ) const [inline]

Member Data Documentation

Definition at line 57 of file Line.h.

Referenced by closerPointToLine(), direction(), and distance().

Definition at line 56 of file Line.h.

Referenced by closerPointToLine(), distance(), and position().