|
|
Release 4.0 |
 |
Operators - /
Operator : | / - Division |
Unary / binary: | Binary |
Prefix / infix: | Infix |
Input data type |
Output data type |
|
real/real |
real |
real/complex |
complex |
real/quaternion |
quaternion |
complex/real |
complex |
complex/complex |
complex |
complex/quaternion |
quaternion |
vector/real |
vector |
quaternion/real |
quaternion |
quaternion/complex |
quaternion |
quaternion/quaternion |
quaternion |
color/real |
color |
Notes:
This operator divides the first operand by the second operand.The data type of the result is real, if both operands are either int or real. If at least one operand is complex, the result is stored as a complex number.
If at least one operand is a quaternion number, the result is stored as a quaternion number.
If you divide a color by a real number, then this operation is performed per color component, i.e. per red, green, blue and alpha component.
Examples:
3/4
x/y
rgba(0.2, 0.4, 0.5, 1.0)/2 = rgba(0.1, 0.2, 0.25, 0.5)
|