OpenLexocad  27.1
Base::Line2d Class Reference

#include <Tools2D.h>

Public Member Functions

 Line2d (void)
 
 Line2d (const Line2d &rclLine)
 
 Line2d (const Vector2d &rclV1, const Vector2d &rclV2)
 
double Length (void) const
 
BoundBox2d CalcBoundBox (void) const
 
Line2doperator= (const Line2d &rclLine)
 
bool operator== (const Line2d &rclLine) const
 
bool Contains (const Vector2d &rclV) const
 
bool Intersect (const Line2d &rclLine, Vector2d &rclV) const
 
bool Intersect (const Vector2d &rclV, double eps) const
 
bool IntersectAndContain (const Line2d &rclLine, Vector2d &rclV) const
 
Vector2d FromPos (double fDistance) const
 

Public Attributes

Vector2d clV1
 
Vector2d clV2
 

Detailed Description

Line2d 2D line class.

Constructor & Destructor Documentation

◆ Line2d() [1/3]

Base::Line2d::Line2d ( void  )
inline

◆ Line2d() [2/3]

Base::Line2d::Line2d ( const Line2d rclLine)
inline

◆ Line2d() [3/3]

Base::Line2d::Line2d ( const Vector2d rclV1,
const Vector2d rclV2 
)
inline

Member Function Documentation

◆ CalcBoundBox()

BoundBox2d Base::Line2d::CalcBoundBox ( void  ) const

◆ Contains()

bool Base::Line2d::Contains ( const Vector2d rclV) const
inline

◆ FromPos()

Vector2d Base::Line2d::FromPos ( double  fDistance) const

◆ Intersect() [1/2]

bool Base::Line2d::Intersect ( const Line2d rclLine,
Vector2d rclV 
) const

◆ Intersect() [2/2]

bool Base::Line2d::Intersect ( const Vector2d rclV,
double  eps 
) const

◆ IntersectAndContain()

bool Base::Line2d::IntersectAndContain ( const Line2d rclLine,
Vector2d rclV 
) const

◆ Length()

double Base::Line2d::Length ( void  ) const
inline

◆ operator=()

Line2d & Base::Line2d::operator= ( const Line2d rclLine)
inline

◆ operator==()

bool Base::Line2d::operator== ( const Line2d rclLine) const
inline

Member Data Documentation

◆ clV1

Vector2d Base::Line2d::clV1

◆ clV2

Vector2d Base::Line2d::clV2

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