Colord.Vec3¶
Methods¶
| add(src2, dest) | |
| clear() | |
| copy(dest) | |
| get_data() | |
| init(v0, v1, v2) | |
| scalar_multiply(value, dest) | |
| squared_error(src2) | |
| subtract(src2, dest) | |
| to_string() | 
Details¶
- 
class Colord.Vec3¶
- 
add(src2, dest)[source]¶
- Parameters: - src2 (Colord.Vec3) – the other source
- dest (Colord.Vec3) – the destination
 - Adds two vector quantaties The arguments src and dest can be the same value. 
- src2 (
 - 
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: - float- Gets the raw data for the vector. 
 - 
scalar_multiply(value, dest)[source]¶
- Parameters: - value (float) – the scalar multiplier
- dest (Colord.Vec3) – the destination
 - Multiplies a vector with a scalar. The arguments self and dest can be the same value. 
- value (
 - 
squared_error(src2)[source]¶
- Parameters: - src2 ( - Colord.Vec3) – another vector source- Returns: - the floating point MSE. - Return type: - float- Gets the mean squared error for a pair of vectors 
 - 
subtract(src2, dest)[source]¶
- Parameters: - src2 (Colord.Vec3) – the other source
- dest (Colord.Vec3) – the destination
 - Subtracts one vector quantity from another The arguments src and dest can be the same value. 
- src2 (
 
-