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).  
  | 
|   | 
|   | gp_XY (const Standard_Real theX, const Standard_Real theY) | 
|   | a number pair defined by the XY coordinates  
  | 
|   | 
| 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}.  
  | 
|   | 
| void  | SetCoord (const Standard_Real theX, const Standard_Real theY) | 
|   | For this number pair, assigns the values theX and theY to its coordinates.  
  | 
|   | 
| void  | SetX (const Standard_Real theX) | 
|   | Assigns the given value to the X coordinate of this number pair.  
  | 
|   | 
| void  | SetY (const Standard_Real theY) | 
|   | Assigns the given value to the Y coordinate of this number pair.  
  | 
|   | 
| 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}.  
  | 
|   | 
| 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.  
  | 
|   | 
| Standard_Real  | X () const | 
|   | Returns the X coordinate of this number pair.  
  | 
|   | 
| Standard_Real  | Y () const | 
|   | Returns the Y coordinate of this number pair.  
  | 
|   | 
| Standard_Real  | Modulus () const | 
|   | Computes Sqrt (X*X + Y*Y) where X and Y are the two coordinates of this number pair.  
  | 
|   | 
| Standard_Real  | SquareModulus () const | 
|   | Computes X*X + Y*Y where X and Y are the two coordinates of this number pair.  
  | 
|   | 
| 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.  
  | 
|   | 
| void  | Add (const gp_XY &theOther) | 
|   | Computes the sum of this number pair and number pair theOther.  
  | 
|   | 
| 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.  
  | 
|   | 
| 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 ||  
  | 
|   | 
| Standard_Real  | CrossSquareMagnitude (const gp_XY &theRight) const | 
|   | computes the square magnitude of the cross product between <me> and theRight. Returns || <me> ^ theRight ||**2  
  | 
|   | 
| void  | Divide (const Standard_Real theScalar) | 
|   | divides <me> by a real.  
  | 
|   | 
| void  | operator/= (const Standard_Real theScalar) | 
|   | 
| gp_XY  | Divided (const Standard_Real theScalar) const | 
|   | Divides <me> by a real.  
  | 
|   | 
| gp_XY  | operator/ (const Standard_Real theScalar) const | 
|   | 
| Standard_Real  | Dot (const gp_XY &theOther) const | 
|   | Computes the scalar product between <me> and theOther.  
  | 
|   | 
| 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>  
  | 
|   | 
| 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>  
  | 
|   | 
| 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:  
  | 
|   | 
| 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:  
  | 
|   | 
| 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:  
  | 
|   | 
| void  | SetLinearForm (const gp_XY &theXY1, const gp_XY &theXY2) | 
|   | Computes the following linear combination and assigns the result to this number pair:  
  | 
|   | 
| 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.