Open CASCADE Technology 6.6.0
Public Member Functions
Geom2d_AxisPlacement Class Reference

Describes an axis in 2D space.
An axis is defined by:
More...

#include <Geom2d_AxisPlacement.hxx>

Inheritance diagram for Geom2d_AxisPlacement:
Inheritance graph
[legend]

Public Member Functions

 Geom2d_AxisPlacement (const gp_Ax2d &A)
 Constructs an axis by conversion of the gp_Ax2d axis A.

 Geom2d_AxisPlacement (const gp_Pnt2d &P, const gp_Dir2d &V)
 Constructs an axis from a given origin P and unit vector V.

void Reverse ()
Handle_Geom2d_AxisPlacement Reversed () const
 Reverses the unit vector of this axis.
Note:

void SetAxis (const gp_Ax2d &A)
 Changes the complete definition of the axis placement.

void SetDirection (const gp_Dir2d &V)
 Changes the "Direction" of the axis placement.

void SetLocation (const gp_Pnt2d &P)
 Changes the "Location" point (origin) of the axis placement.

Standard_Real Angle (const Handle< Geom2d_AxisPlacement > &Other) const
 Computes the angle between the "Direction" of
two axis placement in radians.
The result is comprised between -Pi and Pi.

gp_Ax2d Ax2d () const
 Converts this axis into a gp_Ax2d axis.

gp_Dir2d Direction () const
 Returns the "Direction" of <me>.

gp_Pnt2d Location () const
 Returns the "Location" point (origin) of the axis placement.

void Transform (const gp_Trsf2d &T)
 Applies the transformation T to this axis.

Handle_Geom2d_Geometry Copy () const
 Creates a new object which is a copy of this axis.


Detailed Description


Constructor & Destructor Documentation

Geom2d_AxisPlacement::Geom2d_AxisPlacement ( const gp_Ax2d A)
Geom2d_AxisPlacement::Geom2d_AxisPlacement ( const gp_Pnt2d P,
const gp_Dir2d V 
)

Member Function Documentation

Standard_Real Geom2d_AxisPlacement::Angle ( const Handle< Geom2d_AxisPlacement > &  Other) const
gp_Ax2d Geom2d_AxisPlacement::Ax2d ( ) const
Handle_Geom2d_Geometry Geom2d_AxisPlacement::Copy ( ) const [virtual]

Implements Geom2d_Geometry.

gp_Dir2d Geom2d_AxisPlacement::Direction ( ) const

-C++: return const&

gp_Pnt2d Geom2d_AxisPlacement::Location ( ) const

-C++: return const&

void Geom2d_AxisPlacement::Reverse ( )
Handle_Geom2d_AxisPlacement Geom2d_AxisPlacement::Reversed ( ) const
  • Reverse assigns the result to this axis, while
  • Reversed creates a new one.
void Geom2d_AxisPlacement::SetAxis ( const gp_Ax2d A)
void Geom2d_AxisPlacement::SetDirection ( const gp_Dir2d V)
void Geom2d_AxisPlacement::SetLocation ( const gp_Pnt2d P)
void Geom2d_AxisPlacement::Transform ( const gp_Trsf2d T) [virtual]

Implements Geom2d_Geometry.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines