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