This class describes a cartesian coordinate entity in 3D space {X,Y,Z}. This entity is used for algebraic calculation. This entity can be transformed with a "Trsf" or a "GTrsf" from package "gp". It is used in vectorial computations or for holding this type of information in data structures.  
 More...
 | 
|   | gp_XYZ () | 
|   | Creates an XYZ object with zero coordinates (0,0,0)  
  | 
|   | 
|   | gp_XYZ (const Standard_Real theX, const Standard_Real theY, const Standard_Real theZ) | 
|   | creates an XYZ with given coordinates  
  | 
|   | 
| void  | SetCoord (const Standard_Real theX, const Standard_Real theY, const Standard_Real theZ) | 
|   | For this XYZ object, assigns the values theX, theY and theZ to its three 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 theIndex = 3 => Z is modified Raises OutOfRange if theIndex != {1, 2, 3}.  
  | 
|   | 
| void  | SetX (const Standard_Real theX) | 
|   | Assigns the given value to the X coordinate.  
  | 
|   | 
| void  | SetY (const Standard_Real theY) | 
|   | Assigns the given value to the Y coordinate.  
  | 
|   | 
| void  | SetZ (const Standard_Real theZ) | 
|   | Assigns the given value to the Z coordinate.  
  | 
|   | 
| Standard_Real  | Coord (const Standard_Integer theIndex) const | 
|   | returns the coordinate of range theIndex : theIndex = 1 => X is returned theIndex = 2 => Y is returned theIndex = 3 => Z is returned  
  | 
|   | 
| Standard_Real &  | ChangeCoord (const Standard_Integer theIndex) | 
|   | 
| void  | Coord (Standard_Real &theX, Standard_Real &theY, Standard_Real &theZ) const | 
|   | 
| const Standard_Real *  | GetData () const | 
|   | Returns a const ptr to coordinates location. Is useful for algorithms, but DOES NOT PERFORM ANY CHECKS!  
  | 
|   | 
| Standard_Real *  | ChangeData () | 
|   | Returns a ptr to coordinates location. Is useful for algorithms, but DOES NOT PERFORM ANY CHECKS!  
  | 
|   | 
| Standard_Real  | X () const | 
|   | Returns the X coordinate.  
  | 
|   | 
| Standard_Real  | Y () const | 
|   | Returns the Y coordinate.  
  | 
|   | 
| Standard_Real  | Z () const | 
|   | Returns the Z coordinate.  
  | 
|   | 
| Standard_Real  | Modulus () const | 
|   | computes Sqrt (X*X + Y*Y + Z*Z) where X, Y and Z are the three coordinates of this XYZ object.  
  | 
|   | 
| Standard_Real  | SquareModulus () const | 
|   | Computes X*X + Y*Y + Z*Z where X, Y and Z are the three coordinates of this XYZ object.  
  | 
|   | 
| Standard_Boolean  | IsEqual (const gp_XYZ &theOther, const Standard_Real theTolerance) const | 
|   | Returns True if he coordinates of this XYZ object are equal to the respective coordinates Other, within the specified tolerance theTolerance. I.e.: abs(<me>.X() - theOther.X()) <= theTolerance and abs(<me>.Y() - theOther.Y()) <= theTolerance and abs(<me>.Z() - theOther.Z()) <= theTolerance.  
  | 
|   | 
| void  | Add (const gp_XYZ &theOther) | 
|   | 
| void  | operator+= (const gp_XYZ &theOther) | 
|   | 
| gp_XYZ  | Added (const gp_XYZ &theOther) const | 
|   | 
| gp_XYZ  | operator+ (const gp_XYZ &theOther) const | 
|   | 
| void  | Cross (const gp_XYZ &theOther) | 
|   | 
| void  | operator^= (const gp_XYZ &theOther) | 
|   | 
| gp_XYZ  | Crossed (const gp_XYZ &theOther) const | 
|   | 
| gp_XYZ  | operator^ (const gp_XYZ &theOther) const | 
|   | 
| Standard_Real  | CrossMagnitude (const gp_XYZ &theRight) const | 
|   | Computes the magnitude of the cross product between <me> and theRight. Returns || <me> ^ theRight ||.  
  | 
|   | 
| Standard_Real  | CrossSquareMagnitude (const gp_XYZ &theRight) const | 
|   | Computes the square magnitude of the cross product between <me> and theRight. Returns || <me> ^ theRight ||**2.  
  | 
|   | 
| void  | CrossCross (const gp_XYZ &theCoord1, const gp_XYZ &theCoord2) | 
|   | Triple vector product Computes <me> = <me>.Cross(theCoord1.Cross(theCoord2))  
  | 
|   | 
| gp_XYZ  | CrossCrossed (const gp_XYZ &theCoord1, const gp_XYZ &theCoord2) const | 
|   | Triple vector product computes New = <me>.Cross(theCoord1.Cross(theCoord2))  
  | 
|   | 
| void  | Divide (const Standard_Real theScalar) | 
|   | divides <me> by a real.  
  | 
|   | 
| void  | operator/= (const Standard_Real theScalar) | 
|   | 
| gp_XYZ  | Divided (const Standard_Real theScalar) const | 
|   | divides <me> by a real.  
  | 
|   | 
| gp_XYZ  | operator/ (const Standard_Real theScalar) const | 
|   | 
| Standard_Real  | Dot (const gp_XYZ &theOther) const | 
|   | computes the scalar product between <me> and theOther  
  | 
|   | 
| Standard_Real  | operator* (const gp_XYZ &theOther) const | 
|   | 
| Standard_Real  | DotCross (const gp_XYZ &theCoord1, const gp_XYZ &theCoord2) const | 
|   | computes the triple scalar product  
  | 
|   | 
| void  | Multiply (const Standard_Real theScalar) | 
|   | 
| void  | operator*= (const Standard_Real theScalar) | 
|   | 
| void  | Multiply (const gp_XYZ &theOther) | 
|   | 
| void  | operator*= (const gp_XYZ &theOther) | 
|   | 
| void  | Multiply (const gp_Mat &theMatrix) | 
|   | <me> = theMatrix * <me>  
  | 
|   | 
| void  | operator*= (const gp_Mat &theMatrix) | 
|   | 
| gp_XYZ  | Multiplied (const Standard_Real theScalar) const | 
|   | 
| gp_XYZ  | operator* (const Standard_Real theScalar) const | 
|   | 
| gp_XYZ  | Multiplied (const gp_XYZ &theOther) const | 
|   | 
| gp_XYZ  | Multiplied (const gp_Mat &theMatrix) const | 
|   | New = theMatrix * <me>  
  | 
|   | 
| gp_XYZ  | operator* (const gp_Mat &theMatrix) const | 
|   | 
| void  | Normalize () | 
|   | 
| gp_XYZ  | Normalized () const | 
|   | 
| void  | Reverse () | 
|   | 
| gp_XYZ  | Reversed () const | 
|   | 
| void  | Subtract (const gp_XYZ &theOther) | 
|   | 
| void  | operator-= (const gp_XYZ &theOther) | 
|   | 
| gp_XYZ  | Subtracted (const gp_XYZ &theOther) const | 
|   | 
| gp_XYZ  | operator- (const gp_XYZ &theOther) const | 
|   | 
| void  | SetLinearForm (const Standard_Real theA1, const gp_XYZ &theXYZ1, const Standard_Real theA2, const gp_XYZ &theXYZ2, const Standard_Real theA3, const gp_XYZ &theXYZ3, const gp_XYZ &theXYZ4) | 
|   | <me> is set to the following linear form :  
  | 
|   | 
| void  | SetLinearForm (const Standard_Real theA1, const gp_XYZ &theXYZ1, const Standard_Real theA2, const gp_XYZ &theXYZ2, const Standard_Real theA3, const gp_XYZ &theXYZ3) | 
|   | <me> is set to the following linear form :  
  | 
|   | 
| void  | SetLinearForm (const Standard_Real theA1, const gp_XYZ &theXYZ1, const Standard_Real theA2, const gp_XYZ &theXYZ2, const gp_XYZ &theXYZ3) | 
|   | <me> is set to the following linear form :  
  | 
|   | 
| void  | SetLinearForm (const Standard_Real theA1, const gp_XYZ &theXYZ1, const Standard_Real theA2, const gp_XYZ &theXYZ2) | 
|   | <me> is set to the following linear form :  
  | 
|   | 
| void  | SetLinearForm (const Standard_Real theA1, const gp_XYZ &theXYZ1, const gp_XYZ &theXYZ2) | 
|   | <me> is set to the following linear form :  
  | 
|   | 
| void  | SetLinearForm (const gp_XYZ &theXYZ1, const gp_XYZ &theXYZ2) | 
|   | <me> is set to the following linear form :  
  | 
|   | 
| void  | DumpJson (Standard_OStream &theOStream, Standard_Integer theDepth=-1) const | 
|   | Dumps the content of me into the stream.  
  | 
|   | 
| Standard_Boolean  | InitFromJson (const Standard_SStream &theSStream, Standard_Integer &theStreamPos) | 
|   | Inits the content of me from the stream.  
  | 
|   | 
This class describes a cartesian coordinate entity in 3D space {X,Y,Z}. This entity is used for algebraic calculation. This entity can be transformed with a "Trsf" or a "GTrsf" from package "gp". It is used in vectorial computations or for holding this type of information in data structures.