CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Friends | List of all members
OdTrVisMiniVec2d< DataType > Struct Template Reference

#include <TrVisVector.h>

Inheritance diagram for OdTrVisMiniVec2d< DataType >:
OdTrVisMiniVec3d< DataType >

Public Types

typedef DataType EntryType
 

Public Member Functions

 OdTrVisMiniVec2d ()
 
 OdTrVisMiniVec2d (DataType _x, DataType _y)
 
template<typename VecType >
 OdTrVisMiniVec2d (const VecType &vec)
 
OdTrVisMiniVec2dset (DataType _x, DataType _y)
 
template<typename VecType >
OdTrVisMiniVec2dset (const VecType &vec)
 
DataType operator[] (int nAxis) const
 
DataType & operator[] (int nAxis)
 
bool operator== (const OdTrVisMiniVec2d &vec) const
 
bool operator!= (const OdTrVisMiniVec2d &vec) const
 
 operator OdGePoint2d () const
 
 operator OdGeVector2d () const
 
OdTrVisMiniVec2d operator+ (const OdTrVisMiniVec2d &vec) const
 
OdTrVisMiniVec2doperator+= (const OdTrVisMiniVec2d &vec)
 
OdTrVisMiniVec2d operator- (const OdTrVisMiniVec2d &vec) const
 
OdTrVisMiniVec2doperator-= (const OdTrVisMiniVec2d &vec)
 
DataType operator* (const OdTrVisMiniVec2d &vec) const
 
DataType operator^ (const OdTrVisMiniVec2d &vec) const
 
OdTrVisMiniVec2doperator*= (DataType val)
 
OdTrVisMiniVec2doperator/= (DataType val)
 
OdTrVisMiniVec2d operator- () const
 
OdTrVisMiniVec2dnegate ()
 
OdTrVisMiniVec2d mul (const OdTrVisMiniVec2d &vec) const
 
OdTrVisMiniVec2dsetMul (const OdTrVisMiniVec2d &vec) const
 
OdTrVisMiniVec2d div (const OdTrVisMiniVec2d &vec) const
 
OdTrVisMiniVec2dsetDiv (const OdTrVisMiniVec2d &vec) const
 
OdTrVisMiniVec2dsetNull ()
 
bool isNull (DataType eps=1.e-8f) const
 
DataType length2 () const
 
DataType length () const
 
OdTrVisMiniVec2d operator~ () const
 
OdTrVisMiniVec2dnormalize (DataType eps=1.e-8f)
 
DataType minimum () const
 
DataType maximum () const
 

Static Public Member Functions

static bool eqTol (float val, float eps=1.e-8f)
 
static bool eqTol (double val, double eps=1.e-10)
 

Public Attributes

DataType x
 
DataType y
 

Friends

OdTrVisMiniVec2d operator* (const OdTrVisMiniVec2d &vec, DataType val)
 
OdTrVisMiniVec2d operator* (DataType val, const OdTrVisMiniVec2d &vec)
 
OdTrVisMiniVec2d operator/ (const OdTrVisMiniVec2d &vec, DataType val)
 
OdTrVisMiniVec2d operator/ (DataType val, const OdTrVisMiniVec2d &vec)
 

Detailed Description

template<typename DataType>
struct OdTrVisMiniVec2d< DataType >

Library: Source code provided. <group ExRender_Windows_Classes>

Definition at line 38 of file TrVisVector.h.

Member Typedef Documentation

◆ EntryType

template<typename DataType >
typedef DataType OdTrVisMiniVec2d< DataType >::EntryType

Definition at line 41 of file TrVisVector.h.

Constructor & Destructor Documentation

◆ OdTrVisMiniVec2d() [1/3]

template<typename DataType >
OdTrVisMiniVec2d< DataType >::OdTrVisMiniVec2d ( )
inline

Definition at line 47 of file TrVisVector.h.

◆ OdTrVisMiniVec2d() [2/3]

template<typename DataType >
OdTrVisMiniVec2d< DataType >::OdTrVisMiniVec2d ( DataType  _x,
DataType  _y 
)
inline

Definition at line 48 of file TrVisVector.h.

◆ OdTrVisMiniVec2d() [3/3]

template<typename DataType >
template<typename VecType >
OdTrVisMiniVec2d< DataType >::OdTrVisMiniVec2d ( const VecType &  vec)
inline

Definition at line 50 of file TrVisVector.h.

Member Function Documentation

◆ div()

template<typename DataType >
OdTrVisMiniVec2d OdTrVisMiniVec2d< DataType >::div ( const OdTrVisMiniVec2d< DataType > &  vec) const
inline

Definition at line 114 of file TrVisVector.h.

◆ eqTol() [1/2]

template<typename DataType >
static bool OdTrVisMiniVec2d< DataType >::eqTol ( double  val,
double  eps = 1.e-10 
)
inlinestatic

Definition at line 44 of file TrVisVector.h.

◆ eqTol() [2/2]

template<typename DataType >
static bool OdTrVisMiniVec2d< DataType >::eqTol ( float  val,
float  eps = 1.e-8f 
)
inlinestatic

Definition at line 43 of file TrVisVector.h.

◆ isNull()

template<typename DataType >
bool OdTrVisMiniVec2d< DataType >::isNull ( DataType  eps = 1.e-8f) const
inline

Definition at line 122 of file TrVisVector.h.

◆ length()

template<typename DataType >
DataType OdTrVisMiniVec2d< DataType >::length ( ) const
inline

Definition at line 128 of file TrVisVector.h.

◆ length2()

template<typename DataType >
DataType OdTrVisMiniVec2d< DataType >::length2 ( ) const
inline

Definition at line 126 of file TrVisVector.h.

◆ maximum()

template<typename DataType >
DataType OdTrVisMiniVec2d< DataType >::maximum ( ) const
inline

Definition at line 147 of file TrVisVector.h.

◆ minimum()

template<typename DataType >
DataType OdTrVisMiniVec2d< DataType >::minimum ( ) const
inline

Definition at line 145 of file TrVisVector.h.

◆ mul()

template<typename DataType >
OdTrVisMiniVec2d OdTrVisMiniVec2d< DataType >::mul ( const OdTrVisMiniVec2d< DataType > &  vec) const
inline

Definition at line 110 of file TrVisVector.h.

◆ negate()

template<typename DataType >
OdTrVisMiniVec2d & OdTrVisMiniVec2d< DataType >::negate ( )
inline

Definition at line 107 of file TrVisVector.h.

◆ normalize()

template<typename DataType >
OdTrVisMiniVec2d & OdTrVisMiniVec2d< DataType >::normalize ( DataType  eps = 1.e-8f)
inline

Definition at line 134 of file TrVisVector.h.

◆ operator OdGePoint2d()

template<typename DataType >
OdTrVisMiniVec2d< DataType >::operator OdGePoint2d ( ) const
inline

Definition at line 72 of file TrVisVector.h.

◆ operator OdGeVector2d()

template<typename DataType >
OdTrVisMiniVec2d< DataType >::operator OdGeVector2d ( ) const
inline

Definition at line 73 of file TrVisVector.h.

◆ operator!=()

template<typename DataType >
bool OdTrVisMiniVec2d< DataType >::operator!= ( const OdTrVisMiniVec2d< DataType > &  vec) const
inline

Definition at line 68 of file TrVisVector.h.

◆ operator*()

template<typename DataType >
DataType OdTrVisMiniVec2d< DataType >::operator* ( const OdTrVisMiniVec2d< DataType > &  vec) const
inline

Definition at line 86 of file TrVisVector.h.

◆ operator*=()

template<typename DataType >
OdTrVisMiniVec2d & OdTrVisMiniVec2d< DataType >::operator*= ( DataType  val)
inline

Definition at line 96 of file TrVisVector.h.

◆ operator+()

template<typename DataType >
OdTrVisMiniVec2d OdTrVisMiniVec2d< DataType >::operator+ ( const OdTrVisMiniVec2d< DataType > &  vec) const
inline

Definition at line 76 of file TrVisVector.h.

◆ operator+=()

template<typename DataType >
OdTrVisMiniVec2d & OdTrVisMiniVec2d< DataType >::operator+= ( const OdTrVisMiniVec2d< DataType > &  vec)
inline

Definition at line 78 of file TrVisVector.h.

◆ operator-() [1/2]

template<typename DataType >
OdTrVisMiniVec2d OdTrVisMiniVec2d< DataType >::operator- ( ) const
inline

Definition at line 106 of file TrVisVector.h.

◆ operator-() [2/2]

template<typename DataType >
OdTrVisMiniVec2d OdTrVisMiniVec2d< DataType >::operator- ( const OdTrVisMiniVec2d< DataType > &  vec) const
inline

Definition at line 80 of file TrVisVector.h.

◆ operator-=()

template<typename DataType >
OdTrVisMiniVec2d & OdTrVisMiniVec2d< DataType >::operator-= ( const OdTrVisMiniVec2d< DataType > &  vec)
inline

Definition at line 82 of file TrVisVector.h.

◆ operator/=()

template<typename DataType >
OdTrVisMiniVec2d & OdTrVisMiniVec2d< DataType >::operator/= ( DataType  val)
inline

Definition at line 102 of file TrVisVector.h.

◆ operator==()

template<typename DataType >
bool OdTrVisMiniVec2d< DataType >::operator== ( const OdTrVisMiniVec2d< DataType > &  vec) const
inline

Definition at line 66 of file TrVisVector.h.

◆ operator[]() [1/2]

template<typename DataType >
DataType & OdTrVisMiniVec2d< DataType >::operator[] ( int  nAxis)
inline

Definition at line 62 of file TrVisVector.h.

◆ operator[]() [2/2]

template<typename DataType >
DataType OdTrVisMiniVec2d< DataType >::operator[] ( int  nAxis) const
inline

Definition at line 60 of file TrVisVector.h.

◆ operator^()

template<typename DataType >
DataType OdTrVisMiniVec2d< DataType >::operator^ ( const OdTrVisMiniVec2d< DataType > &  vec) const
inline

Definition at line 88 of file TrVisVector.h.

◆ operator~()

template<typename DataType >
OdTrVisMiniVec2d OdTrVisMiniVec2d< DataType >::operator~ ( ) const
inline

Definition at line 132 of file TrVisVector.h.

◆ set() [1/2]

template<typename DataType >
template<typename VecType >
OdTrVisMiniVec2d & OdTrVisMiniVec2d< DataType >::set ( const VecType &  vec)
inline

Definition at line 56 of file TrVisVector.h.

◆ set() [2/2]

template<typename DataType >
OdTrVisMiniVec2d & OdTrVisMiniVec2d< DataType >::set ( DataType  _x,
DataType  _y 
)
inline

Definition at line 53 of file TrVisVector.h.

◆ setDiv()

template<typename DataType >
OdTrVisMiniVec2d & OdTrVisMiniVec2d< DataType >::setDiv ( const OdTrVisMiniVec2d< DataType > &  vec) const
inline

Definition at line 116 of file TrVisVector.h.

◆ setMul()

template<typename DataType >
OdTrVisMiniVec2d & OdTrVisMiniVec2d< DataType >::setMul ( const OdTrVisMiniVec2d< DataType > &  vec) const
inline

Definition at line 112 of file TrVisVector.h.

◆ setNull()

template<typename DataType >
OdTrVisMiniVec2d & OdTrVisMiniVec2d< DataType >::setNull ( )
inline

Definition at line 120 of file TrVisVector.h.

Friends And Related Function Documentation

◆ operator* [1/2]

template<typename DataType >
OdTrVisMiniVec2d operator* ( const OdTrVisMiniVec2d< DataType > &  vec,
DataType  val 
)
friend

Definition at line 92 of file TrVisVector.h.

◆ operator* [2/2]

template<typename DataType >
OdTrVisMiniVec2d operator* ( DataType  val,
const OdTrVisMiniVec2d< DataType > &  vec 
)
friend

Definition at line 94 of file TrVisVector.h.

◆ operator/ [1/2]

template<typename DataType >
OdTrVisMiniVec2d operator/ ( const OdTrVisMiniVec2d< DataType > &  vec,
DataType  val 
)
friend

Definition at line 98 of file TrVisVector.h.

◆ operator/ [2/2]

template<typename DataType >
OdTrVisMiniVec2d operator/ ( DataType  val,
const OdTrVisMiniVec2d< DataType > &  vec 
)
friend

Definition at line 100 of file TrVisVector.h.

Member Data Documentation

◆ x

template<typename DataType >
DataType OdTrVisMiniVec2d< DataType >::x

Definition at line 40 of file TrVisVector.h.

◆ y

template<typename DataType >
DataType OdTrVisMiniVec2d< DataType >::y

Definition at line 40 of file TrVisVector.h.


The documentation for this struct was generated from the following file: