Public Member Functions |
| Graphic3d_Vector () |
| Creates a vector with 1.0, 0.0, 0.0 coordinates.
|
| Graphic3d_Vector (const Standard_Real AX, const Standard_Real AY, const Standard_Real AZ) |
| Creates a vector with <AX>, <AY>, <AZ> coordinates.
|
| Graphic3d_Vector (const Graphic3d_Vertex &APoint1, const Graphic3d_Vertex &APoint2) |
| Creates a vector from 2 points <APoint1> and <APoint2>.
|
void | Normalize () |
| Normalises <me>.
Category: Methods to modify the class definition
Warning: Raises VectorError if <me> is null.
|
void | SetCoord (const Standard_Real Xnew, const Standard_Real Ynew, const Standard_Real Znew) |
| Modifies the coordinates of the vector <me>.
|
void | SetXCoord (const Standard_Real Xnew) |
| Modifies the X coordinate of the vector <me>.
|
void | SetYCoord (const Standard_Real Ynew) |
| Modifies the Y coordinate of the vector <me>.
|
void | SetZCoord (const Standard_Real Znew) |
| Modifies the Z coordinate of the vector <me>.
|
void | Coord (Standard_Real &AX, Standard_Real &AY, Standard_Real &AZ) const |
| Returns the coordinates of the vector <me>.
|
Standard_Boolean | IsNormalized () const |
| Returns Standard_True if <me> has length 1.
|
Standard_Boolean | LengthZero () const |
| Returns Standard_True if <me> has length zero.
|
Standard_Real | X () const |
| Returns the X coordinates of the vector <me>.
|
Standard_Real | Y () const |
| Returns the Y coordinate of the vector <me>.
|
Standard_Real | Z () const |
| Returns the Z coordinate of the vector <me>.
|
Static Public Member Functions |
static Standard_Boolean | IsParallel (const Graphic3d_Vector &AV1, const Graphic3d_Vector &AV2) |
| Returns Standard_True if the vector <AV1> and
<AV2> are parallel.
|
static Standard_Real | NormeOf (const Standard_Real AX, const Standard_Real AY, const Standard_Real AZ) |
| Returns the norm of the vector <AX>, <AY>, <AZ>.
|
static Standard_Real | NormeOf (const Graphic3d_Vector &AVector) |
| Returns the norm of the vector <AVector>.
|