| Itasca C++ Interface
    | 
An AVector2 in 2D, an AVector3 in 3D. More...
#include <dim.h>
 
  
| Public Member Functions | |
| AVector () | |
| Default constructor, no data initialization. | |
| AVector (const AVector &av) | |
| Copy constructor. | |
| AVector (const AVector3< T > &av) | |
| Copy constructor. | |
|  Public Member Functions inherited from AVector3< T > | |
| constexpr | AVector3 (const AVector3< T > &)=default | 
| constexpr AVector3< T > & | operator= (const AVector3< T > &)=default | 
| AVector3 (const Vector3< T > &v) | |
| AVector3 (const AVector2< T > &v) | |
| Explicit conversion contructor from an AVector2, x=0, y=0, z=v.z. | |
| Vector2< T > | toVector2 () const | 
| Converts to a Vector2, the z component is lost. | |
| const Vector3< T > & | toVector3 () const | 
| Converts to a Vector3 directly. | |
|  Public Member Functions inherited from Vector3< T > | |
| constexpr | Vector3 (const Vector3< T > &v)=default | 
| constexpr Vector3< T > & | operator= (const Vector3< T > &in)=default | 
| constexpr | Vector3 (const T &x, const T &y, const T &z=0) | 
| Explicit constructor, by the three components of the vector. | |
| constexpr | Vector3 (const T &t) | 
| Explicit constructor, all three components are inintialized to t. | |
| constexpr const T & | x () const | 
| The x-component of the vector. | |
| constexpr const T & | y () const | 
| The y-component of the vector. | |
| constexpr const T & | z () const | 
| The z-component of the vector. | |
| constexpr const T & | dof (unsigned u) const | 
| The degree-of-freedom u (0-2) component. | |
| T & | rx () | 
| Reference access to the x-component of the vector. | |
| T & | ry () | 
| Reference access to the y-component of the vector. | |
| T & | rz () | 
| Reference access to the z-component of the vector. | |
| T & | rdof (unsigned u) | 
| Reference access to degree-of-freedom u (0-2) of the vector. | |
| template<std::size_t N> | |
| constexpr T | get () const | 
| constexpr T | fsum () const | 
| Manhattan norm. | |
| constexpr T | sum () const | 
| Sum of components. | |
| constexpr T | mag2 () const | 
| Square of the magnitude, or the vector dotted with itself. | |
| constexpr T | mag () const | 
| The vector magnitude. | |
| constexpr T | volume () const | 
| Volume of region represented by x*y*z - can be negative. | |
| Vector3< T > | unit () const | 
| Unit vector - be sure vector is nonzero. | |
| constexpr Vector3< T > | abs () const | 
| Returns vector of absolute values of components. | |
| void | fill (const T &d) | 
| Fills all three components with value d. | |
| constexpr T | maxComp () const | 
| Returns the maximum component. | |
| constexpr T | minComp () const | 
| Returns the minimum component. | |
| constexpr unsigned | maxCompIndex () const | 
| Returns the max component index. | |
| constexpr unsigned | minCompIndex () const | 
| Returns the min component index. | |
| constexpr bool | operator== (const Vector3< T > &v) const | 
| Comparison operator - no tolerance is used. | |
| constexpr bool | operator!= (const Vector3< T > &v) const | 
| Comparison operator - no tolerance is used. | |
| constexpr bool | operator< (const Vector3< T > &v) const | 
| Comparison operator, compare each DOF in order. | |
| constexpr bool | operator> (const Vector3< T > &v) const | 
| Comparison operator, compare each DOF in order. | |
| constexpr const Vector3< T > & | operator+= (const Vector3< T > &v) | 
| In-place mathematical operators – * and / are done on a component basis. | |
| constexpr const Vector3< T > & | operator-= (const Vector3< T > &v) | 
| In-place mathematical operators – * and / are done on a component basis. | |
| constexpr const Vector3< T > & | operator*= (const Vector3< T > &v) | 
| In-place mathematical operators – * and / are done on a component basis. | |
| constexpr const Vector3< T > & | operator*= (const T &t) | 
| In-place mathematical operators – * and / are done on a component basis. | |
| constexpr const Vector3< T > & | operator/= (const Vector3< T > &v) | 
| In-place mathematical operators – * and / are done on a component basis. | |
| constexpr const Vector3< T > & | operator/= (const T &t) | 
| In-place mathematical operators – * and / are done on a component basis. | |
| constexpr Vector3< T > | operator+ (const Vector3< T > &v) const | 
| Binary mathematical operators – * and / are done on a component basis. | |
| constexpr Vector3< T > | operator- (const Vector3< T > &v) const | 
| Binary mathematical operators – * and / are done on a component basis. | |
| constexpr Vector3< T > | operator* (const Vector3< T > &v) const | 
| Binary mathematical operators – * and / are done on a component basis. | |
| constexpr Vector3< T > | operator* (const T &t) const | 
| Binary mathematical operators – * and / are done on a component basis. | |
| constexpr Vector3< T > | operator/ (const Vector3< T > &v) const | 
| Binary mathematical operators – * and / are done on a component basis. | |
| constexpr Vector3< T > | operator/ (const T &t) const | 
| Binary mathematical operators – * and / are done on a component basis. | |
| constexpr Vector3< T > | operator& (const Vector3< T > &v) const | 
| Cross Product. | |
| constexpr T | operator| (const Vector3< T > &v) const | 
| Dot Product. | |
| Additional Inherited Members | |
|  Public Types inherited from Vector3< T > | |
| using | Base = std::array<T,3> | 
| using | CompType = T | 
|  Static Public Attributes inherited from Vector3< T > | |
| static constexpr uint32 | vdim = 3 | 
|  Related Symbols inherited from AVector3< T > | |
| using | DAVect3 = AVector3<double> | 
| using | FAVect3 = AVector3<float> | 
| using | IAVect3 = AVector3<int32> | 
| using | UAVect3 = AVector3<uint32> | 
| template<class T > | |
| DAVect3 | toDAVect3 (const Vector3< T > &v) | 
| template<class T > | |
| FAVect3 | toFAVect3 (const Vector3< T > &v) | 
| template<class T > | |
| IAVect3 | toAIVect3 (const Vector3< T > &v) | 
| template<class T > | |
| UAVect3 | toAUVect3 (const Vector3< T > &v) | 
| template<class T > | |
| Vector2< T > | toVect2 (const AVector3< T > &v) | 
| template<class T > | |
| const Vector3< T > & | toVect3 (const AVector3< T > &v) | 
| template<class T > | |
| AVector3< T > | toAVect3 (const AVector2< T > &v, const T &x=0, const T &y=0) | 
| template<class T > | |
| const AVector3< T > & | toAVect3 (const AVector3< T > &v) | 
| template<class T > | |
| AVector3< T > | vmax (const AVector3< T > &v1, const AVector3< T > &v2) | 
| template<class T > | |
| AVector3< T > | vmin (const AVector3< T > &v1, const AVector3< T > &v2) | 
| template<class T > | |
| AVector3< T > | vsign (const AVector3< T > &v1, const AVector3< T > &v2) | 
| template<class T > | |
| AVector3< T > | vceil (const AVector3< T > &v) | 
| template<class T > | |
| AVector2< T > | vmin (const AVector2< T > &v1, const AVector2< T > &v2) | 
| template<class T > | |
| AVector2< T > | vceil (const AVector2< T > &v) | 
|  Related Symbols inherited from Vector3< T > | |
| using | DVect3 = Vector3<double> | 
| using | FVect3 = Vector3<float> | 
| using | IVect3 = Vector3<int32> | 
| using | UVect3 = Vector3<uint32> | 
| using | I64Vect3 = Vector3<int64> | 
| using | U64Vect3 = Vector3<uint64> | 
| template<class T > | |
| constexpr DVect3 | toDVect3 (const Vector3< T > &v) | 
| template<class T > | |
| constexpr FVect3 | toFVect3 (const Vector3< T > &v) | 
| template<class T > | |
| constexpr IVect3 | toIVect3 (const Vector3< T > &v) | 
| template<class T > | |
| constexpr U64Vect3 | toU64Vect3 (const Vector3< T > &v) | 
| template<class T > | |
| constexpr Vector3< T > | vmax (const Vector3< T > &v1, const Vector3< T > &v2) | 
| template<class T > | |
| constexpr Vector3< T > | vmin (const Vector3< T > &v1, const Vector3< T > &v2) | 
| template<class T > | |
| constexpr Vector3< T > | vsign (const Vector3< T > &v1, const Vector3< T > &v2) | 
| template<class T > | |
| Vector3< T > | vceil (const Vector3< T > &v) | 
| template<class T > | |
| Vector3< T > | vfloor (const Vector3< T > &v) | 
| template<class T > | |
| IVect3 constexpr | vround (const Vector3< T > &v) |