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) More...
|
|
| gp_XYZ (const Standard_Real theX, const Standard_Real theY, const Standard_Real theZ) |
| creates an XYZ with given coordinates More...
|
|
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. 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 theIndex = 3 => Z is modified Raises OutOfRange if theIndex != {1, 2, 3}. More...
|
|
void | SetX (const Standard_Real theX) |
| Assigns the given value to the X coordinate. More...
|
|
void | SetY (const Standard_Real theY) |
| Assigns the given value to the Y coordinate. More...
|
|
void | SetZ (const Standard_Real theZ) |
| Assigns the given value to the Z coordinate. 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 theIndex = 3 => Z is returned More...
|
|
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! More...
|
|
Standard_Real * | ChangeData () |
| Returns a ptr to coordinates location. Is useful for algorithms, but DOES NOT PERFORM ANY CHECKS! More...
|
|
Standard_Real | X () const |
| Returns the X coordinate. More...
|
|
Standard_Real | Y () const |
| Returns the Y coordinate. More...
|
|
Standard_Real | Z () const |
| Returns the Z coordinate. More...
|
|
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. More...
|
|
Standard_Real | SquareModulus () const |
| Computes X*X + Y*Y + Z*Z where X, Y and Z are the three coordinates of this XYZ object. More...
|
|
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. More...
|
|
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 ||. More...
|
|
Standard_Real | CrossSquareMagnitude (const gp_XYZ &theRight) const |
| Computes the square magnitude of the cross product between <me> and theRight. Returns || <me> ^ theRight ||**2. More...
|
|
void | CrossCross (const gp_XYZ &theCoord1, const gp_XYZ &theCoord2) |
| Triple vector product Computes <me> = <me>.Cross(theCoord1.Cross(theCoord2)) More...
|
|
gp_XYZ | CrossCrossed (const gp_XYZ &theCoord1, const gp_XYZ &theCoord2) const |
| Triple vector product computes New = <me>.Cross(theCoord1.Cross(theCoord2)) More...
|
|
void | Divide (const Standard_Real theScalar) |
| divides <me> by a real. More...
|
|
void | operator/= (const Standard_Real theScalar) |
|
gp_XYZ | Divided (const Standard_Real theScalar) const |
| divides <me> by a real. More...
|
|
gp_XYZ | operator/ (const Standard_Real theScalar) const |
|
Standard_Real | Dot (const gp_XYZ &theOther) const |
| computes the scalar product between <me> and theOther More...
|
|
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 More...
|
|
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> More...
|
|
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> More...
|
|
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 : More...
|
|
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 : More...
|
|
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 : More...
|
|
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 : More...
|
|
void | SetLinearForm (const Standard_Real theA1, const gp_XYZ &theXYZ1, const gp_XYZ &theXYZ2) |
| <me> is set to the following linear form : More...
|
|
void | SetLinearForm (const gp_XYZ &theXYZ1, const gp_XYZ &theXYZ2) |
| <me> is set to the following linear form : More...
|
|
void | DumpJson (Standard_OStream &theOStream, Standard_Integer theDepth=-1) const |
| Dumps the content of me into the stream. More...
|
|
Standard_Boolean | InitFromJson (const Standard_SStream &theSStream, Standard_Integer &theStreamPos) |
| Inits the content of me from the stream. More...
|
|
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.