Hide menu
Loading...
Searching...
No Matches
cadex::Geom::Axis2d Class Reference

Defines a right-hand or left-hand axis in 2D. More...

#include <cadex/Geom/Axis2d.hxx>

Public Member Functions

 Axis2d ()
 Constructor.
 
 Axis2d (const Point2d &theLocation, const Direction2d &theXDir, const Direction2d &theYDir)
 Constructor.
 
 Axis2d (const Point2d &theLocation, const Direction2d &theDir, bool theCCW=true)
 Constructor.
 
const Point2dLocation () const
 
const Direction2dXDirection () const
 
const Direction2dYDirection () const
 
void SetLocation (const Point2d &thePnt)
 
void SetXDirection (const Direction2d &theDir)
 
void SetYDirection (const Direction2d &theDir)
 

Detailed Description

Defines a right-hand or left-hand axis in 2D.

An axis is defined by a location point, a X-direction and an Y-direction the axis is right-handed or left-handed.

Constructor & Destructor Documentation

◆ Axis2d() [1/2]

cadex::Geom::Axis2d::Axis2d ( )

Constructor.

Creates an axis from point (0., 0.), X-direction (1., 0.) and Y-direction (0., 1.).

◆ Axis2d() [2/2]

cadex::Geom::Axis2d::Axis2d ( const Point2d & theLocation,
const Direction2d & theDir,
bool theCCW = true )

Constructor.

If theCCW is true than axis2d will be right-handed.