Base::Line2D Class Reference

Line2D. More...

#include <Tools2D.h>

List of all members.

Public Member Functions

BoundBox2D CalcBoundBox (void) const
 LINE2D.
bool Contains (const Vector2D &rclV) const
Vector2D FromPos (float fDistance) const
bool Intersect (const Line2D &rclLine, Vector2D &rclV) const
bool IntersectAndContain (const Line2D &rclLine, Vector2D &rclV) const
float Length (void) const
 Line2D (const Vector2D &rclV1, const Vector2D &rclV2)
 Line2D (const Line2D &rclLine)
 Line2D (void)
Line2Doperator= (const Line2D &rclLine)
bool operator== (const Line2D &rclLine) const

Public Attributes

Vector2D clV1
Vector2D clV2

Detailed Description

Line2D.

2D line class.

Definition at line 106 of file Tools2D.h.


Constructor & Destructor Documentation

Base::Line2D::Line2D ( void   )  [inline]

Definition at line 111 of file Tools2D.h.

Base::Line2D::Line2D ( const Line2D rclLine  )  [inline]

Definition at line 296 of file Tools2D.h.

Base::Line2D::Line2D ( const Vector2D rclV1,
const Vector2D rclV2 
) [inline]

Definition at line 302 of file Tools2D.h.


Member Function Documentation

BoundBox2D Line2D::CalcBoundBox ( void   )  const
bool Base::Line2D::Contains ( const Vector2D rclV  )  const [inline]

Definition at line 324 of file Tools2D.h.

References CalcBoundBox(), and Base::BoundBox2D::Contains().

Referenced by IntersectAndContain().

Vector2D Line2D::FromPos ( float  fDistance  )  const
bool Line2D::Intersect ( const Line2D rclLine,
Vector2D rclV 
) const

Definition at line 188 of file Tools2D.cpp.

References clV1, clV2, FLOAT_MAX, Base::Vector2D::fX, and Base::Vector2D::fY.

Referenced by IntersectAndContain().

bool Line2D::IntersectAndContain ( const Line2D rclLine,
Vector2D rclV 
) const

Definition at line 235 of file Tools2D.cpp.

References Contains(), and Intersect().

Referenced by Base::Polygon2D::Intersect(), and Base::BoundBox2D::operator||().

float Base::Line2D::Length ( void   )  const [inline]

Definition at line 307 of file Tools2D.h.

References clV1, and clV2.

Line2D & Base::Line2D::operator= ( const Line2D rclLine  )  [inline]

Definition at line 312 of file Tools2D.h.

References clV1, and clV2.

bool Base::Line2D::operator== ( const Line2D rclLine  )  const [inline]

Definition at line 319 of file Tools2D.h.

References clV1, and clV2.


Member Data Documentation


The documentation for this class was generated from the following files:

Generated on Wed Nov 23 19:01:47 2011 for FreeCAD by  doxygen 1.6.1