|
| NCollection_Vec2 () |
| Empty constructor. Construct the zero vector.
|
|
| NCollection_Vec2 (const Element_t theXY) |
| Initialize ALL components of vector within specified value.
|
|
| NCollection_Vec2 (const Element_t theX, const Element_t theY) |
| Per-component constructor.
|
|
template<typename OtherElement_t > |
| NCollection_Vec2 (const NCollection_Vec2< OtherElement_t > &theOtherVec2) |
| Conversion constructor (explicitly converts some 2-component vector with other element type to a new 2-component vector with the element type Element_t, whose elements are static_cast'ed corresponding elements of theOtherVec2 vector)
|
|
void | SetValues (const Element_t theX, const Element_t theY) |
| Assign new values to the vector.
|
|
Element_t | x () const |
| Alias to 1st component as X coordinate in XY.
|
|
Element_t | y () const |
| Alias to 2nd component as Y coordinate in XY.
|
|
Element_t & | x () |
| Alias to 1st component as X coordinate in XY.
|
|
Element_t & | y () |
| Alias to 2nd component as Y coordinate in XY.
|
|
bool | IsEqual (const NCollection_Vec2 &theOther) const |
| Check this vector with another vector for equality (without tolerance!).
|
|
bool | operator== (const NCollection_Vec2 &theOther) const |
| Check this vector with another vector for equality (without tolerance!).
|
|
bool | operator!= (const NCollection_Vec2 &theOther) const |
| Check this vector with another vector for non-equality (without tolerance!).
|
|
const Element_t * | GetData () const |
| Raw access to the data (for OpenGL exchange).
|
|
Element_t * | ChangeData () |
|
| operator const Element_t * () const |
|
| operator Element_t * () |
|
NCollection_Vec2 & | operator+= (const NCollection_Vec2 &theAdd) |
| Compute per-component summary.
|
|
NCollection_Vec2 & | operator-= (const NCollection_Vec2 &theDec) |
| Compute per-component subtraction.
|
|
NCollection_Vec2 | operator- () const |
| Unary -.
|
|
NCollection_Vec2 & | operator*= (const NCollection_Vec2 &theRight) |
| Compute per-component multiplication.
|
|
void | Multiply (const Element_t theFactor) |
| Compute per-component multiplication by scale factor.
|
|
NCollection_Vec2 | Multiplied (const Element_t theFactor) const |
| Compute per-component multiplication by scale factor.
|
|
NCollection_Vec2 | cwiseMin (const NCollection_Vec2 &theVec) const |
| Compute component-wise minimum of two vectors.
|
|
NCollection_Vec2 | cwiseMax (const NCollection_Vec2 &theVec) const |
| Compute component-wise maximum of two vectors.
|
|
NCollection_Vec2 | cwiseAbs () const |
| Compute component-wise modulus of the vector.
|
|
Element_t | maxComp () const |
| Compute maximum component of the vector.
|
|
Element_t | minComp () const |
| Compute minimum component of the vector.
|
|
NCollection_Vec2 & | operator*= (const Element_t theFactor) |
| Compute per-component multiplication by scale factor.
|
|
NCollection_Vec2 & | operator/= (const Element_t theInvFactor) |
| Compute per-component division by scale factor.
|
|
NCollection_Vec2 & | operator/= (const NCollection_Vec2 &theRight) |
| Compute per-component division.
|
|
NCollection_Vec2 | operator* (const Element_t theFactor) const |
| Compute per-component multiplication by scale factor.
|
|
NCollection_Vec2 | operator/ (const Element_t theInvFactor) const |
| Compute per-component division by scale factor.
|
|
Element_t | Dot (const NCollection_Vec2 &theOther) const |
| Computes the dot product.
|
|
Element_t | Modulus () const |
| Computes the vector modulus (magnitude, length).
|
|
Element_t | SquareModulus () const |
| Computes the square of vector modulus (magnitude, length). This method may be used for performance tricks.
|
|
void | DumpJson (Standard_OStream &theOStream, Standard_Integer theDepth=-1) const |
| Dumps the content of me into the stream.
|
|