![]() |
Open CASCADE Technology Reference Manual 8.0.0
|
This class implements construction algorithms for gp_Hypr2d. Supported constructions include:
More...
#include <gce_MakeHypr2d.hxx>

Public Member Functions | |
| gce_MakeHypr2d (const gp_Pnt2d &S1, const gp_Pnt2d &S2, const gp_Pnt2d &Center) | |
| Creates a hyperbola from center and two points. | |
| gce_MakeHypr2d (const gp_Ax2d &MajorAxis, const double MajorRadius, const double MinorRadius, const bool Sense) | |
| Creates a hyperbola from major axis and radii. | |
| gce_MakeHypr2d (const gp_Ax22d &A, const double MajorRadius, const double MinorRadius) | |
| Creates a hyperbola from local coordinate system and radii. | |
| const gp_Hypr2d & | Value () const |
| Returns the constructed hyperbola. Exceptions StdFail_NotDone if no hyperbola is constructed. | |
| gp_Hypr2d | Operator () const |
| Alias for Value() returning a copy. | |
| operator gp_Hypr2d () const | |
| Conversion operator returning the constructed object. | |
Public Member Functions inherited from gce_Root | |
| bool | IsDone () const |
| Returns true if the construction is successful. | |
| bool | IsError () const |
| Returns true if the construction has failed. | |
| gce_ErrorType | Status () const |
| Returns the status of the construction: | |
Additional Inherited Members | |
Protected Attributes inherited from gce_Root | |
| gce_ErrorType | TheError |
This class implements construction algorithms for gp_Hypr2d. Supported constructions include:
^YAxis | FirstConjugateBranch | Other | Main ------------------— C ------------------------------>XAxis Branch | Branch | | SecondConjugateBranch |
An axis placement (one axis) is associated with the hyperbola. This axis is the "XAxis" or major axis of the hyperbola. It is the symmetry axis of the main branch. The "YAxis" is normal to this axis and passes through its location point. It is the minor axis.
The major radius is the distance between the Location point of the hyperbola C and the vertex of the Main Branch (or the Other branch). The minor radius is the distance between the Location point of the hyperbola C and the vertex of the First (or Second) Conjugate branch. The major radius can be lower than the minor radius.
| gce_MakeHypr2d::gce_MakeHypr2d | ( | const gp_Pnt2d & | S1, |
| const gp_Pnt2d & | S2, | ||
| const gp_Pnt2d & | Center ) |
Creates a hyperbola from center and two points.
Center is the hyperbola center, Center-S1 defines major axis, major radius is Distance(Center, S1), and minor radius is distance from S2 to this major axis. gce_ConfusedPoints if any two of S1, S2, and Center are coincident. gce_ColinearPoints if S1, S2, and Center are collinear. | [in] | S1 | first point |
| [in] | S2 | second point |
| [in] | Center | center point |
| gce_MakeHypr2d::gce_MakeHypr2d | ( | const gp_Ax2d & | MajorAxis, |
| const double | MajorRadius, | ||
| const double | MinorRadius, | ||
| const bool | Sense ) |
Creates a hyperbola from major axis and radii.
MajorAxis.Location(). Sense is false, the opposite direction of MajorAxis is used. gce_NegativeRadius if MajorRadius < 0.0 or MinorRadius < 0.0. | [in] | MajorAxis | major axis placement |
| [in] | MajorRadius | major radius value |
| [in] | MinorRadius | minor radius value |
| [in] | Sense | orientation flag |
| gce_MakeHypr2d::gce_MakeHypr2d | ( | const gp_Ax22d & | A, |
| const double | MajorRadius, | ||
| const double | MinorRadius ) |
Creates a hyperbola from local coordinate system and radii.
A.Location(), and its major axis follows the X axis direction of A. gce_NegativeRadius if MajorRadius < 0.0 or MinorRadius < 0.0. | [in] | A | local coordinate system |
| [in] | MajorRadius | major radius value |
| [in] | MinorRadius | minor radius value |
|
inline |
Alias for Value() returning a copy.
|
inline |
Conversion operator returning the constructed object.
| const gp_Hypr2d & gce_MakeHypr2d::Value | ( | ) | const |
Returns the constructed hyperbola. Exceptions StdFail_NotDone if no hyperbola is constructed.