Hide menu
Loading...
Searching...
No Matches

Defines 2D line. More...

#include <cadex/Geom/Line2d.hxx>

Inheritance diagram for cadex::Geom::Line2d:
cadex::Geom::Curve2d cadex::Geom::Geometry cadex::BaseObject

Public Member Functions

 Line2d ()
 Constructor.
 
 Line2d (const Geom::Point2d &theLocation, const Geom::Direction2d &theDirection)
 Constructor.
 
Point2d Location () const
 Returns an origin point.
 
Direction2d Direction () const
 Returns a direction.
 
double Parameter (const Geom::Point2d &thePoint) const
 
- Public Member Functions inherited from cadex::Geom::Curve2d
 Curve2d ()
 Constructor.
 
CurveType Type () const
 Returns a curve type.
 
Geom::Continuity Continuity () const
 Returns a continuity type of the curve.
 
Geom::Point2d Value (double theParameter) const
 Evaluates a point on the curve.
 
Geom::Direction2d Normal (double theParameter) const
 Returns the normal direction theNormal of parameter theParam.
 
double Curvature (double theParameter) const
 Returns the curvature value of parameter theParam.
 
double UMin () const
 Returns a minimum parameter of a definition domain.
 
double UMax () const
 Returns a maximum parameter of a definition domain.
 
void Domain (double &theUMin, double &theUMax) const
 Returns a definition domain.
 
bool IsTrimmed () const
 Returns whether curve is trimmed or not.
 
void SetTrim (double theFirst, double theLast)
 Trims curve with [theFirst, theLast] section.
 
void D0 (double theParameter, Point2d &theValue) const
 Returns the point theValue of parameter theParam.
 
void D1 (double theParameter, Point2d &theValue, Vector2d &theD1) const
 Returns the point theValue of parameter theParam and the first derivative theD1.
 
void D2 (double theParameter, Point2d &theValue, Vector2d &theD1, Vector2d &theD2) const
 Returns the point theValue of parameter theParam and second derivatives theD1 and theD2.
 
bool DN (double theParameter, size_t theDerivativeOrder, Geom::Point2d &theValue, std::vector< Geom::Vector2d > &theD) const
 
void Transform (const Transformation2d &theTransformation)
 Applies transformation matrix to this object.
 
Curve2d Transformed (const Transformation2d &theTransformation) const
 Returns a copy this object after applying transformation.
 
- Public Member Functions inherited from cadex::BaseObject
size_t Id () const
 Return unique identifier of public object.
 
internal::BaseObjectImpl * Impl () const
 
bool IsNull () const
 
 operator bool () const
 
template<typename T >
bool IsOfType () const
 
template<typename T >
T * Impl () const
 Reserved for internal use.
 

Static Public Member Functions

static bool CompareType (const BaseObject &theObject)
 
- Static Public Member Functions inherited from cadex::Geom::Curve2d
static bool CompareType (const BaseObject &theObject)
 
- Static Public Member Functions inherited from cadex::Geom::Geometry
static bool CompareType (const BaseObject &theObject)
 

Additional Inherited Members

- Public Types inherited from cadex::BaseObject
typedef std::shared_ptr< internal::BaseObjectImpl > ImplType
 
- Protected Member Functions inherited from cadex::Geom::Curve2d
 Curve2d (const ImplType &theImpl)
 
- Protected Member Functions inherited from cadex::Geom::Geometry
 Geometry (const ImplType &theImpl)
 
- Protected Member Functions inherited from cadex::BaseObject
 BaseObject (const ImplType &theImpl)
 

Detailed Description

Defines 2D line.

For detailed description refer to 3D counterpart Line.

Examples
nesting/nesting_computer/Program.cs, and nesting/nesting_computer/main.cxx.

Constructor & Destructor Documentation

◆ Line2d()

cadex::Geom::Line2d::Line2d ( const Geom::Point2d & theLocation,
const Geom::Direction2d & theDirection )

Constructor.

Creates a line from point and direction.

Member Function Documentation

◆ Direction()

Direction2d cadex::Geom::Line2d::Direction ( ) const

Returns a direction.

Returns the value specified in the constructor.

◆ Location()

Point2d cadex::Geom::Line2d::Location ( ) const

Returns an origin point.

Returns the value specified in the constructor.