ClanLib
2.3.7
|
1D vector More...
#include <vec1.h>
Public Types | |
typedef Type | datatype |
Public Member Functions | |
CL_Vec1 () | |
CL_Vec1 (const CL_Vec2< Type > ©) | |
CL_Vec1 (const CL_Vec3< Type > ©) | |
CL_Vec1 (const CL_Vec4< Type > ©) | |
CL_Vec1 (const Type &p1) | |
Attributes | |
CL_Vec1< Type > & | round () |
Rounds all components on this vector. More... | |
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. More... | |
void | operator+= (Type value) |
+= operator. More... | |
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. More... | |
void | operator-= (Type value) |
-= operator. More... | |
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. More... | |
void | operator*= (Type value) |
*= operator. More... | |
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. More... | |
void | operator/= (Type value) |
/= operator. More... | |
CL_Vec1< Type > | operator/ (const CL_Vec1< Type > &vector) const |
/ operator. More... | |
CL_Vec1< Type > | operator/ (Type value) const |
/ operator. More... | |
CL_Vec1< Type > & | operator= (const CL_Vec1< Type > &vector) |
= operator. More... | |
bool | operator== (const CL_Vec1< Type > &vector) const |
== operator. More... | |
bool | operator!= (const CL_Vec1< Type > &vector) const |
!= operator. More... | |
Static Public Member Functions | |
static CL_Vec1< Type > | round (const CL_Vec1< Type > &vector) |
Rounds all components on a vector. More... | |
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_Vec1< Type >::x, and CL_Vec2< Type >::x.
References CL_Vec1< Type >::x, and CL_Vec3< Type >::x.
References CL_Vec1< Type >::x, and CL_Vec4< Type >::x.
|
inline |
|
inline |
|
inline |
!= operator.
References CL_Vec1< Type >::x.
|
inline |
References CL_Vec1< Type >::x.
References CL_Vec1< Type >::x.
*= operator.
References CL_Vec1< Type >::x.
|
inline |
*= operator.
References CL_Vec1< Type >::x.
|
inline |
References CL_Vec1< Type >::x.
References CL_Vec1< Type >::x.
+= operator.
References CL_Vec1< Type >::x.
|
inline |
+= operator.
References CL_Vec1< Type >::x.
|
inline |
References CL_Vec1< Type >::x.
References CL_Vec1< Type >::x.
-= operator.
References CL_Vec1< Type >::x.
|
inline |
-= operator.
References CL_Vec1< Type >::x.
|
inline |
/ operator.
References CL_Vec1< Type >::x.
/ operator.
References CL_Vec1< Type >::x.
/= operator.
References CL_Vec1< Type >::x.
|
inline |
/= operator.
References CL_Vec1< Type >::x.
|
inline |
= operator.
References CL_Vec1< Type >::x.
|
inline |
== operator.
References CL_Vec1< Type >::x.
|
inline |
|
inline |
|
inlinestatic |
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 { ... } |
Type CL_Vec1< Type >::r |
Type CL_Vec1< Type >::s |
Type CL_Vec1< Type >::x |
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().