Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Segments
[Primitives]


Detailed Description

Global functions to compute segments.
#include <qgarlib/primitives.H>


Global functions which compute segments

template<class T>
GenSegment< double > qgar::qgPerpendicular (const GenPoint< T > &aPt, const GenSegment< T > &aSeg)
 Return a segment perpendicular to the given segment.
template<class T>
GenQgarSegment< double > qgar::qgPerpendicular (const GenPoint< T > &aPt, const GenQgarSegment< T > &aQSeg)
 Return a Qgar segment perpendicular to the given Qgar segment.


Function Documentation

template<class T>
GenQgarSegment< double > qgar::qgPerpendicular const GenPoint< T > &  aPt,
const GenQgarSegment< T > &  aQSeg
[inline]
 

Return a Qgar segment perpendicular to the given Qgar segment.

Its source is the given point, its target is the orthogonal projection of the given point onto the line supporting the given segment. Its color, thickness and outline are those of the given segment.

Parameters:
aPt a point
aQSeg a Qgar segment
Warning:
The resulting Qgar segment has double coordinates.

Definition at line 77 of file _QGAR_segment.TCC.

References qgar::qgProject().

template<class T>
GenSegment< double > qgar::qgPerpendicular const GenPoint< T > &  aPt,
const GenSegment< T > &  aSeg
[inline]
 

Return a segment perpendicular to the given segment.

Its source is the given point, its target is the orthogonal projection of the given point onto the line supporting the given segment.

Parameters:
aPt a point
aSeg a segment
Warning:
The resulting segment has double coordinates.

Definition at line 64 of file _QGAR_segment.TCC.

References qgar::qgProject().