|
STLdoc
STLdocumentation
|
Represent a unorm number. Each element is a floating point number in the range of [0.0f, 1.0f]. More...
#include <amp_short_vectors.h>
Public Member Functions | |
| unorm (void) __GPU | |
| Default constructor. Initialize to 0.0f. More... | |
| unorm (float _V) __GPU | |
| Constructor. Initialize by clamping _V to the range of [0.0f, 1.0f]. More... | |
| unorm (unsigned int _V) __GPU | |
| Constructor. Initialize by casting _V to float, then clamping to the range of [0.0f, 1.0f]. More... | |
| unorm (int _V) __GPU | |
| Constructor. Initialize by casting _V to float, then clamping to the range of [0.0f, 1.0f]. More... | |
| unorm (double _V) __GPU | |
| Constructor. Initialize by casting _V to float, then clamping to the range of [0.0f, 1.0f]. More... | |
| unorm (const unorm &_Other) __GPU | |
| Copy constructor. More... | |
| unorm (const norm &_Other) __GPU | |
| Constructor. Initialize by clamping _Other to the range of [0.0f, 1.0f]. More... | |
| unorm & | operator= (const unorm &_Other) __GPU |
| operator float (void) const __GPU | |
| Conversion operator. Convert the unorm number to a floating point value. More... | |
| unorm & | operator+= (const unorm &_Other) __GPU |
| unorm & | operator-= (const unorm &_Other) __GPU |
| unorm & | operator*= (const unorm &_Other) __GPU |
| unorm & | operator/= (const unorm &_Other) __GPU |
| unorm & | operator++ () __GPU |
| unorm | operator++ (int) __GPU |
| unorm & | operator-- () __GPU |
| unorm | operator-- (int) __GPU |
Private Member Functions | |
| void | _Set (float _Val) __CPU_ONLY |
| void | _Set (float _Val) __GPU_ONLY |
Private Attributes | |
| float | _Value |
Friends | |
| class | norm |
Represent a unorm number. Each element is a floating point number in the range of [0.0f, 1.0f].
|
inline |
Default constructor. Initialize to 0.0f.
|
inlineexplicit |
Constructor. Initialize by clamping _V to the range of [0.0f, 1.0f].
| _V | The value used to initialize. |
|
inlineexplicit |
Constructor. Initialize by casting _V to float, then clamping to the range of [0.0f, 1.0f].
| _V | The value used to initialize. |
|
inlineexplicit |
Constructor. Initialize by casting _V to float, then clamping to the range of [0.0f, 1.0f].
| _V | The value used to initialize. |
|
inlineexplicit |
Constructor. Initialize by casting _V to float, then clamping to the range of [0.0f, 1.0f].
| _V | The value used to initialize. |
|
inline |
Copy constructor.
| _Other | The object to copy from. |
|
inlineexplicit |
Constructor. Initialize by clamping _Other to the range of [0.0f, 1.0f].
| _Other | The norm object used to initialize. |
|
inlineprivate |
|
inlineprivate |
|
inline |
Conversion operator. Convert the unorm number to a floating point value.
|
inline |
|
inline |
|
inline |
|
inline |
|
friend |
|
private |
1.8.8