Open CASCADE Technology 6.6.0
|
Defines a vector with magnitude.
A vector with magnitude can have a zero length.
#include <Geom_VectorWithMagnitude.hxx>
Public Member Functions | |
Geom_VectorWithMagnitude (const gp_Vec &V) | |
Creates a transient copy of V. | |
Geom_VectorWithMagnitude (const Standard_Real X, const Standard_Real Y, const Standard_Real Z) | |
Creates a vector with three cartesian coordinates. | |
Geom_VectorWithMagnitude (const gp_Pnt &P1, const gp_Pnt &P2) | |
Creates a vector from the point P1 to the point P2. The magnitude of the vector is the distance between P1 and P2 | |
void | SetCoord (const Standard_Real X, const Standard_Real Y, const Standard_Real Z) |
Assigns the values X, Y and Z to the coordinates of this vector. | |
void | SetVec (const gp_Vec &V) |
Converts the gp_Vec vector V into this vector. | |
void | SetX (const Standard_Real X) |
Changes the X coordinate of <me>. | |
void | SetY (const Standard_Real Y) |
Changes the Y coordinate of <me> | |
void | SetZ (const Standard_Real Z) |
Changes the Z coordinate of <me>. | |
Standard_Real | Magnitude () const |
Returns the magnitude of <me>. | |
Standard_Real | SquareMagnitude () const |
Returns the square magnitude of <me>. | |
void | Add (const Handle< Geom_Vector > &Other) |
Adds the Vector Other to <me>. | |
Handle_Geom_VectorWithMagnitude | Added (const Handle< Geom_Vector > &Other) const |
Adds the vector Other to <me>. | |
void | Cross (const Handle< Geom_Vector > &Other) |
Computes the cross product between <me> and Other <me> ^ Other. | |
Handle_Geom_Vector | Crossed (const Handle< Geom_Vector > &Other) const |
Computes the cross product between <me> and Other <me> ^ Other. A new vector is returned. | |
void | CrossCross (const Handle< Geom_Vector > &V1, const Handle< Geom_Vector > &V2) |
Computes the triple vector product <me> ^ (V1 ^ V2). | |
Handle_Geom_Vector | CrossCrossed (const Handle< Geom_Vector > &V1, const Handle< Geom_Vector > &V2) const |
Computes the triple vector product <me> ^ (V1 ^ V2). A new vector is returned. | |
void | Divide (const Standard_Real Scalar) |
Divides <me> by a scalar. | |
Handle_Geom_VectorWithMagnitude | Divided (const Standard_Real Scalar) const |
Divides <me> by a scalar. A new vector is returned. | |
Handle_Geom_VectorWithMagnitude | Multiplied (const Standard_Real Scalar) const |
Computes the product of the vector <me> by a scalar. A new vector is returned. | |
void | Multiply (const Standard_Real Scalar) |
Computes the product of the vector <me> by a scalar. | |
void | Normalize () |
Normalizes <me>. Raised if the magnitude of the vector is lower or equal to Resolution from package gp. | |
Handle_Geom_VectorWithMagnitude | Normalized () const |
Returns a copy of <me> Normalized. Raised if the magnitude of the vector is lower or equal to Resolution from package gp. | |
void | Subtract (const Handle< Geom_Vector > &Other) |
Subtracts the Vector Other to <me>. | |
Handle_Geom_VectorWithMagnitude | Subtracted (const Handle< Geom_Vector > &Other) const |
Subtracts the vector Other to <me>. A new vector is returned. | |
void | Transform (const gp_Trsf &T) |
Applies the transformation T to this vector. | |
Handle_Geom_Geometry | Copy () const |
Creates a new object which is a copy of this vector. |
Geom_VectorWithMagnitude::Geom_VectorWithMagnitude | ( | const gp_Vec & | V | ) |
Geom_VectorWithMagnitude::Geom_VectorWithMagnitude | ( | const Standard_Real | X, |
const Standard_Real | Y, | ||
const Standard_Real | Z | ||
) |
void Geom_VectorWithMagnitude::Add | ( | const Handle< Geom_Vector > & | Other | ) |
Handle_Geom_VectorWithMagnitude Geom_VectorWithMagnitude::Added | ( | const Handle< Geom_Vector > & | Other | ) | const |
Handle_Geom_Geometry Geom_VectorWithMagnitude::Copy | ( | ) | const [virtual] |
Implements Geom_Geometry.
void Geom_VectorWithMagnitude::Cross | ( | const Handle< Geom_Vector > & | Other | ) | [virtual] |
Implements Geom_Vector.
void Geom_VectorWithMagnitude::CrossCross | ( | const Handle< Geom_Vector > & | V1, |
const Handle< Geom_Vector > & | V2 | ||
) | [virtual] |
Implements Geom_Vector.
Handle_Geom_Vector Geom_VectorWithMagnitude::CrossCrossed | ( | const Handle< Geom_Vector > & | V1, |
const Handle< Geom_Vector > & | V2 | ||
) | const [virtual] |
Implements Geom_Vector.
Handle_Geom_Vector Geom_VectorWithMagnitude::Crossed | ( | const Handle< Geom_Vector > & | Other | ) | const [virtual] |
Implements Geom_Vector.
void Geom_VectorWithMagnitude::Divide | ( | const Standard_Real | Scalar | ) |
Handle_Geom_VectorWithMagnitude Geom_VectorWithMagnitude::Divided | ( | const Standard_Real | Scalar | ) | const |
Standard_Real Geom_VectorWithMagnitude::Magnitude | ( | ) | const [virtual] |
Implements Geom_Vector.
Handle_Geom_VectorWithMagnitude Geom_VectorWithMagnitude::Multiplied | ( | const Standard_Real | Scalar | ) | const |
void Geom_VectorWithMagnitude::Multiply | ( | const Standard_Real | Scalar | ) |
void Geom_VectorWithMagnitude::Normalize | ( | ) |
Handle_Geom_VectorWithMagnitude Geom_VectorWithMagnitude::Normalized | ( | ) | const |
void Geom_VectorWithMagnitude::SetCoord | ( | const Standard_Real | X, |
const Standard_Real | Y, | ||
const Standard_Real | Z | ||
) |
void Geom_VectorWithMagnitude::SetVec | ( | const gp_Vec & | V | ) |
void Geom_VectorWithMagnitude::SetX | ( | const Standard_Real | X | ) |
void Geom_VectorWithMagnitude::SetY | ( | const Standard_Real | Y | ) |
void Geom_VectorWithMagnitude::SetZ | ( | const Standard_Real | Z | ) |
Standard_Real Geom_VectorWithMagnitude::SquareMagnitude | ( | ) | const [virtual] |
Implements Geom_Vector.
void Geom_VectorWithMagnitude::Subtract | ( | const Handle< Geom_Vector > & | Other | ) |
Handle_Geom_VectorWithMagnitude Geom_VectorWithMagnitude::Subtracted | ( | const Handle< Geom_Vector > & | Other | ) | const |
void Geom_VectorWithMagnitude::Transform | ( | const gp_Trsf & | T | ) | [virtual] |
Implements Geom_Geometry.