Vectors
2 components
bvec2
2-components vectors of unsigned bytes (8 bits)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
count |
int
|
Number of vectors to create |
None
|
Returns:
Type | Description |
---|---|
np.ndarray
|
(count,2) shaped array with dtype np.ubyte |
Source code in glm/vec234.py
ivec2
2-components vectors of integer (32 bits)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
count |
int
|
Number of vectors to create |
None
|
Returns:
Type | Description |
---|---|
np.ndarray
|
(count,2) shaped array with dtype np.int32 |
uvec2
2-components vectors of unsigned integers (32 bits)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
count |
int
|
Number of vectors to create |
None
|
Returns:
Type | Description |
---|---|
np.ndarray
|
(count,2) shaped array with dtype np.uint32 |
Source code in glm/vec234.py
hvec2
2-components vectors of half precision floats (16 bits)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
count |
int
|
Number of vectors to create |
None
|
Returns:
Type | Description |
---|---|
np.ndarray
|
(count,2) shaped array with dtype np.float16 |
Source code in glm/vec234.py
vec2
2-components vectors of single precision floats (32 bits)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
count |
int
|
Number of vectors to create |
None
|
Returns:
Type | Description |
---|---|
np.ndarray
|
(count,2) shaped array with dtype np.float32 |
Source code in glm/vec234.py
dvec2
2-components vectors of double precision floats (64 bits)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
count |
int
|
Number of vectors to create |
None
|
Returns:
Type | Description |
---|---|
np.ndarray
|
(count,2) shaped array with dtype np.float64 |
Source code in glm/vec234.py
3 components
bvec3
3-components vectors of booleans (8 bits)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
count |
int
|
Number of vectors to create |
None
|
Returns:
Type | Description |
---|---|
np.ndarray
|
(count,3) shaped array with dtype np.ubyte |
Source code in glm/vec234.py
ivec3
3-components vectors of signed integers (32 bits)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
count |
int
|
Number of vectors to create |
None
|
Returns:
Type | Description |
---|---|
np.ndarray
|
(count,3) shaped array with dtype np.int32 |
Source code in glm/vec234.py
uvec3
3-components vectors of unsigned integers (32 bits)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
count |
int
|
Number of vectors to create |
None
|
Returns:
Type | Description |
---|---|
np.ndarray
|
(count,3) shaped array with dtype np.uint32 |
Source code in glm/vec234.py
hvec3
3-components vectors of half precision floats (16 bits)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
count |
int
|
Number of vectors to create |
None
|
Returns:
Type | Description |
---|---|
np.ndarray
|
(count,3) shaped array with dtype np.float16 |
Source code in glm/vec234.py
vec3
3-components vectors of single precision floats (32 bits)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
count |
int
|
Number of vectors to create |
None
|
Returns:
Type | Description |
---|---|
np.ndarray
|
(count,3) shaped array with dtype np.float32 |
Source code in glm/vec234.py
dvec3
3-components vectors of double precision floats (64 bits)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
count |
int
|
Number of vectors to create |
None
|
Returns:
Type | Description |
---|---|
np.ndarray
|
(count,3) shaped array with dtype np.float64 |
Source code in glm/vec234.py
4 components
bvec4
4-components vectors of booleans (8 bits)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
count |
int
|
Number of vectors to create |
None
|
Returns:
Type | Description |
---|---|
np.ndarray
|
(count,4) shaped array with dtype np.ubyte |
Source code in glm/vec234.py
ivec4
4-components vectors of signed integers (32 bits)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
count |
int
|
Number of vectors to create |
None
|
Returns:
Type | Description |
---|---|
np.ndarray
|
(count,4) shaped array with dtype np.int32 |
Source code in glm/vec234.py
uvec4
4-components vectors of unsigned integers (32 bits)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
count |
int
|
Number of vectors to create |
None
|
Returns:
Type | Description |
---|---|
np.ndarray
|
(count,4) shaped array with dtype np.uint32 |
Source code in glm/vec234.py
hvec4
4-components vectors of half precision floats (16 bits)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
count |
int
|
Number of vectors to create |
None
|
Returns:
Type | Description |
---|---|
np.ndarray
|
(count,4) shaped numpy array with dtype np.float16 |
Source code in glm/vec234.py
vec4
4-components vectors of single precision floats (32 bits)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
count |
int
|
Number of vectors to create |
None
|
Returns:
Type | Description |
---|---|
np.ndarray
|
(count,4) shaped numpy array with dtype np.float32 |
Source code in glm/vec234.py
dvec4
4-components vectors of double precision floats (64 bits)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
count |
int
|
Number of vectors to create |
None
|
Returns:
Type | Description |
---|---|
np.ndarray
|
(count,4) shaped numpy array with dtype np.float64 |