1D vector More...
#include <vec1.h>
Public Types | |
| typedef Type | datatype |
Public Member Functions | |
| CL_Vec1 () | |
| CL_Vec1 (const Type &p1) | |
| CL_Vec1 (const CL_Vec4< Type > ©) | |
| CL_Vec1 (const CL_Vec3< Type > ©) | |
| CL_Vec1 (const CL_Vec2< Type > ©) | |
Attributes | |
| CL_Vec1< Type > & | round () |
| Rounds all components on this vector. | |
Operators | |
| const Type & | operator[] (unsigned int i) const |
| Type & | operator[] (unsigned int i) |
| operator Type * () | |
| operator Type *const () const | |
| void | operator+= (const CL_Vec1< Type > &vector) |
| += operator. | |
| void | operator+= (Type value) |
| += operator. | |
| CL_Vec1< Type > | operator+ (const CL_Vec1< Type > &vector) const |
| + operator. | |
| CL_Vec1< Type > | operator+ (Type value) const |
| + operator. | |
| void | operator-= (const CL_Vec1< Type > &vector) |
| -= operator. | |
| void | operator-= (Type value) |
| -= operator. | |
| CL_Vec1< Type > | operator- (const CL_Vec1< Type > &vector) const |
| |
| CL_Vec1< Type > | operator- (Type value) const |
| |
| void | operator*= (const CL_Vec1< Type > &vector) |
| *= operator. | |
| void | operator*= (Type value) |
| *= operator. | |
| CL_Vec1< Type > | operator* (const CL_Vec1< Type > &vector) const |
| * operator. | |
| CL_Vec1< Type > | operator* (Type value) const |
| * operator. | |
| void | operator/= (const CL_Vec1< Type > &vector) |
| /= operator. | |
| void | operator/= (Type value) |
| /= operator. | |
| CL_Vec1< Type > | operator/ (const CL_Vec1< Type > &vector) const |
| / operator. | |
| CL_Vec1< Type > | operator/ (Type value) const |
| / operator. | |
| CL_Vec1< Type > & | operator= (const CL_Vec1< Type > &vector) |
| = operator. | |
| bool | operator== (const CL_Vec1< Type > &vector) const |
| == operator. | |
| bool | operator!= (const CL_Vec1< Type > &vector) const |
| != operator. | |
Static Public Member Functions | |
| static CL_Vec1< Type > | round (const CL_Vec1< Type > &vector) |
| Rounds all components on a vector. | |
Public Attributes | |
| union { | |
| Type r | |
| Type s | |
| Type x | |
| }; | |
1D vector
These vector templates are defined for:
char (CL_Vec1c), unsigned char (CL_Vec1uc), short (CL_Vec1s),
unsigned short (CL_Vec1us), int (CL_Vec1i), unsigned int (CL_Vec1ui), float CL_Vec1f), double (CL_Vec1d)
References CL_Vec2< Type >::x, and CL_Vec1< Type >::x.
References CL_Vec3< Type >::x, and CL_Vec1< Type >::x.
References CL_Vec4< Type >::x, and CL_Vec1< Type >::x.
| CL_Vec1< Type >::operator Type * | ( | ) | [inline] |
| CL_Vec1< Type >::operator Type *const | ( | ) | const [inline] |
| bool CL_Vec1< Type >::operator!= | ( | const CL_Vec1< Type > & | vector | ) | const [inline] |
!= operator.
References CL_Vec1< Type >::x.
| CL_Vec1<Type> CL_Vec1< Type >::operator* | ( | const CL_Vec1< Type > & | vector | ) | const [inline] |
* operator.
References CL_Vec1< Type >::x.
* operator.
References CL_Vec1< Type >::x.
| void CL_Vec1< Type >::operator*= | ( | Type | value | ) | [inline] |
*= operator.
References CL_Vec1< Type >::x.
| void CL_Vec1< Type >::operator*= | ( | const CL_Vec1< Type > & | vector | ) | [inline] |
*= operator.
References CL_Vec1< Type >::x.
| CL_Vec1<Type> CL_Vec1< Type >::operator+ | ( | const CL_Vec1< Type > & | vector | ) | const [inline] |
+ operator.
References CL_Vec1< Type >::x.
+ operator.
References CL_Vec1< Type >::x.
| void CL_Vec1< Type >::operator+= | ( | Type | value | ) | [inline] |
+= operator.
References CL_Vec1< Type >::x.
| void CL_Vec1< Type >::operator+= | ( | const CL_Vec1< Type > & | vector | ) | [inline] |
+= operator.
References CL_Vec1< Type >::x.
| CL_Vec1<Type> CL_Vec1< Type >::operator- | ( | const CL_Vec1< Type > & | vector | ) | const [inline] |
References CL_Vec1< Type >::x.
References CL_Vec1< Type >::x.
| void CL_Vec1< Type >::operator-= | ( | const CL_Vec1< Type > & | vector | ) | [inline] |
-= operator.
References CL_Vec1< Type >::x.
| void CL_Vec1< Type >::operator-= | ( | Type | value | ) | [inline] |
-= operator.
References CL_Vec1< Type >::x.
/ operator.
References CL_Vec1< Type >::x.
| CL_Vec1<Type> CL_Vec1< Type >::operator/ | ( | const CL_Vec1< Type > & | vector | ) | const [inline] |
/ operator.
References CL_Vec1< Type >::x.
| void CL_Vec1< Type >::operator/= | ( | Type | value | ) | [inline] |
/= operator.
References CL_Vec1< Type >::x.
| void CL_Vec1< Type >::operator/= | ( | const CL_Vec1< Type > & | vector | ) | [inline] |
/= operator.
References CL_Vec1< Type >::x.
| CL_Vec1<Type>& CL_Vec1< Type >::operator= | ( | const CL_Vec1< Type > & | vector | ) | [inline] |
= operator.
References CL_Vec1< Type >::x.
| bool CL_Vec1< Type >::operator== | ( | const CL_Vec1< Type > & | vector | ) | const [inline] |
== operator.
References CL_Vec1< Type >::x.
| Type& CL_Vec1< Type >::operator[] | ( | unsigned int | i | ) | [inline] |
| const Type& CL_Vec1< Type >::operator[] | ( | unsigned int | i | ) | const [inline] |
| static CL_Vec1<Type> CL_Vec1< Type >::round | ( | const CL_Vec1< Type > & | vector | ) | [inline, static] |
Rounds all components on a vector.
Uses Asymmetric Arithmetic Rounding
| vector | = Vector to use |
References CL_Vec1< Type >::x.
Rounds all components on this vector.
Uses Asymmetric Arithmetic Rounding
References CL_Vec1< Type >::x.
| union { ... } |
Referenced by CL_Vec1< Type >::CL_Vec1(), CL_Vec2< int >::CL_Vec2(), CL_Vec3< int >::CL_Vec3(), CL_Vec4< Type >::CL_Vec4(), CL_Vec1< Type >::operator!=(), CL_Vec1< Type >::operator*(), CL_Vec1< Type >::operator*=(), CL_Vec1< Type >::operator+(), CL_Vec1< Type >::operator+=(), CL_Vec1< Type >::operator-(), CL_Vec1< Type >::operator-=(), CL_Vec1< Type >::operator/(), CL_Vec1< Type >::operator/=(), CL_Vec1< Type >::operator=(), CL_Vec1< Type >::operator==(), and CL_Vec1< Type >::round().
1.7.1