This class describes a cartesian coordinate entity in 2D space {X,Y}. This class is non persistent. This entity used for algebraic calculation. An XY can be transformed with a Trsf2d or a GTrsf2d from package gp. It is used in vectorial computations or for holding this type of information in data structures.
More...
|
| gp_XY () |
| Creates XY object with zero coordinates (0,0). More...
|
|
| gp_XY (const Standard_Real theX, const Standard_Real theY) |
| a number pair defined by the XY coordinates More...
|
|
void | SetCoord (const Standard_Integer theIndex, const Standard_Real theXi) |
| modifies the coordinate of range theIndex theIndex = 1 => X is modified theIndex = 2 => Y is modified Raises OutOfRange if theIndex != {1, 2}. More...
|
|
void | SetCoord (const Standard_Real theX, const Standard_Real theY) |
| For this number pair, assigns the values theX and theY to its coordinates. More...
|
|
void | SetX (const Standard_Real theX) |
| Assigns the given value to the X coordinate of this number pair. More...
|
|
void | SetY (const Standard_Real theY) |
| Assigns the given value to the Y coordinate of this number pair. More...
|
|
Standard_Real | Coord (const Standard_Integer theIndex) const |
| returns the coordinate of range theIndex : theIndex = 1 => X is returned theIndex = 2 => Y is returned Raises OutOfRange if theIndex != {1, 2}. More...
|
|
Standard_Real & | ChangeCoord (const Standard_Integer theIndex) |
|
void | Coord (Standard_Real &theX, Standard_Real &theY) const |
| For this number pair, returns its coordinates X and Y. More...
|
|
Standard_Real | X () const |
| Returns the X coordinate of this number pair. More...
|
|
Standard_Real | Y () const |
| Returns the Y coordinate of this number pair. More...
|
|
Standard_Real | Modulus () const |
| Computes Sqrt (X*X + Y*Y) where X and Y are the two coordinates of this number pair. More...
|
|
Standard_Real | SquareModulus () const |
| Computes X*X + Y*Y where X and Y are the two coordinates of this number pair. More...
|
|
Standard_Boolean | IsEqual (const gp_XY &theOther, const Standard_Real theTolerance) const |
| Returns true if the coordinates of this number pair are equal to the respective coordinates of the number pair theOther, within the specified tolerance theTolerance. I.e.: abs(<me>.X() - theOther.X()) <= theTolerance and abs(<me>.Y() - theOther.Y()) <= theTolerance and computations. More...
|
|
void | Add (const gp_XY &theOther) |
| Computes the sum of this number pair and number pair theOther. More...
|
|
void | operator+= (const gp_XY &theOther) |
|
gp_XY | Added (const gp_XY &theOther) const |
| Computes the sum of this number pair and number pair theOther. More...
|
|
gp_XY | operator+ (const gp_XY &theOther) const |
|
Standard_Real | Crossed (const gp_XY &theOther) const |
|
Standard_Real | operator^ (const gp_XY &theOther) const |
|
Standard_Real | CrossMagnitude (const gp_XY &theRight) const |
| computes the magnitude of the cross product between <me> and theRight. Returns || <me> ^ theRight || More...
|
|
Standard_Real | CrossSquareMagnitude (const gp_XY &theRight) const |
| computes the square magnitude of the cross product between <me> and theRight. Returns || <me> ^ theRight ||**2 More...
|
|
void | Divide (const Standard_Real theScalar) |
| divides <me> by a real. More...
|
|
void | operator/= (const Standard_Real theScalar) |
|
gp_XY | Divided (const Standard_Real theScalar) const |
| Divides <me> by a real. More...
|
|
gp_XY | operator/ (const Standard_Real theScalar) const |
|
Standard_Real | Dot (const gp_XY &theOther) const |
| Computes the scalar product between <me> and theOther. More...
|
|
Standard_Real | operator* (const gp_XY &theOther) const |
|
void | Multiply (const Standard_Real theScalar) |
|
void | operator*= (const Standard_Real theScalar) |
|
void | Multiply (const gp_XY &theOther) |
|
void | operator*= (const gp_XY &theOther) |
|
void | Multiply (const gp_Mat2d &theMatrix) |
| <me> = theMatrix * <me> More...
|
|
void | operator*= (const gp_Mat2d &theMatrix) |
|
gp_XY | Multiplied (const Standard_Real theScalar) const |
|
gp_XY | operator* (const Standard_Real theScalar) const |
|
gp_XY | Multiplied (const gp_XY &theOther) const |
|
gp_XY | Multiplied (const gp_Mat2d &theMatrix) const |
| New = theMatrix * <me> More...
|
|
gp_XY | operator* (const gp_Mat2d &theMatrix) const |
|
void | Normalize () |
|
gp_XY | Normalized () const |
|
void | Reverse () |
|
gp_XY | Reversed () const |
|
gp_XY | operator- () const |
|
void | SetLinearForm (const Standard_Real theA1, const gp_XY &theXY1, const Standard_Real theA2, const gp_XY &theXY2) |
| Computes the following linear combination and assigns the result to this number pair: More...
|
|
void | SetLinearForm (const Standard_Real theA1, const gp_XY &theXY1, const Standard_Real theA2, const gp_XY &theXY2, const gp_XY &theXY3) |
| – Computes the following linear combination and assigns the result to this number pair: More...
|
|
void | SetLinearForm (const Standard_Real theA1, const gp_XY &theXY1, const gp_XY &theXY2) |
| Computes the following linear combination and assigns the result to this number pair: More...
|
|
void | SetLinearForm (const gp_XY &theXY1, const gp_XY &theXY2) |
| Computes the following linear combination and assigns the result to this number pair: More...
|
|
void | Subtract (const gp_XY &theOther) |
|
void | operator-= (const gp_XY &theOther) |
|
gp_XY | Subtracted (const gp_XY &theOther) const |
|
gp_XY | operator- (const gp_XY &theOther) const |
|
This class describes a cartesian coordinate entity in 2D space {X,Y}. This class is non persistent. This entity used for algebraic calculation. An XY can be transformed with a Trsf2d or a GTrsf2d from package gp. It is used in vectorial computations or for holding this type of information in data structures.