Colord.Vec3¶
Fields¶
Name |
Type |
Access |
Description |
---|---|---|---|
v0 |
r/w |
||
v1 |
r/w |
||
v2 |
r/w |
Methods¶
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Details¶
- class Colord.Vec3¶
- add(src2, dest)[source]¶
- Parameters:
src2 (
Colord.Vec3
) – the other sourcedest (
Colord.Vec3
) – the destination
Adds two vector quantaties The arguments src and dest can be the same value.
- copy(dest)[source]¶
- Parameters:
dest (
Colord.Vec3
) – the destination
Copies the vector into another vector. The arguments self and dest cannot be the same value.
- get_data()[source]¶
- Returns:
the pointer to the data segment.
- Return type:
Gets the raw data for the vector.
- scalar_multiply(value, dest)[source]¶
- Parameters:
value (
float
) – the scalar multiplierdest (
Colord.Vec3
) – the destination
Multiplies a vector with a scalar. The arguments self and dest can be the same value.
- squared_error(src2)[source]¶
- Parameters:
src2 (
Colord.Vec3
) – another vector source- Returns:
the floating point MSE.
- Return type:
Gets the mean squared error for a pair of vectors
- subtract(src2, dest)[source]¶
- Parameters:
src2 (
Colord.Vec3
) – the other sourcedest (
Colord.Vec3
) – the destination
Subtracts one vector quantity from another The arguments src and dest can be the same value.