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

Public Member Functions | |
| gce_MakeHypr (const gp_Ax2 &A2, const double MajorRadius, const double MinorRadius) | |
| Creates a hyperbola from a local coordinate system and radii. | |
| gce_MakeHypr (const gp_Pnt &S1, const gp_Pnt &S2, const gp_Pnt &Center) | |
| Creates a hyperbola from center and two points. | |
| const gp_Hypr & | Value () const |
| Returns the constructed hyperbola. Exceptions StdFail_NotDone if no hyperbola is constructed. | |
| gp_Hypr | Operator () const |
| Alias for Value() returning a copy. | |
| operator gp_Hypr () 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_Hypr. Supported constructions include:
^YAxis | FirstConjugateBranch | Other | Main ------------------— C ------------------------------>XAxis Branch | Branch | | SecondConjugateBranch |
The local Cartesian coordinate system of the hyperbola is an axis placement (two axes).
The "XDirection" and the "YDirection" of the axis placement define the plane of the hyperbola.
The "Direction" of the axis placement defines the normal axis to the hyperbola's plane.
The "XAxis" of the hyperbola ("Location", "XDirection") is the major axis and the "YAxis" of the hyperbola ("Location", "YDirection") is the minor axis.
| gce_MakeHypr::gce_MakeHypr | ( | const gp_Ax2 & | A2, |
| const double | MajorRadius, | ||
| const double | MinorRadius ) |
Creates a hyperbola from a local coordinate system and radii.
A2, the equation is X*X / (MajorRadius*MajorRadius) - Y*Y / (MinorRadius*MinorRadius) = 1.0. MajorRadius == MinorRadius is valid. gce_NegativeRadius if MajorRadius < 0.0 or MinorRadius < 0.0. | [in] | A2 | local coordinate system |
| [in] | MajorRadius | major radius value |
| [in] | MinorRadius | minor radius value |
Creates a hyperbola from center and two points.
Center is the hyperbola center, Center-S1 defines the 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 |
|
inline |
Alias for Value() returning a copy.
|
inline |
Conversion operator returning the constructed object.
| const gp_Hypr & gce_MakeHypr::Value | ( | ) | const |
Returns the constructed hyperbola. Exceptions StdFail_NotDone if no hyperbola is constructed.