mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2024-12-29 16:29:40 +00:00
Correction of C_times arg validation
This commit is contained in:
parent
069432021b
commit
99b18d6311
1 changed files with 1 additions and 1 deletions
|
@ -1175,7 +1175,7 @@ function deriv3(data, h=1, closed=false) =
|
|||
// Description:
|
||||
// Multiplies two complex numbers represented by 2D vectors.
|
||||
function C_times(z1,z2) =
|
||||
assert( is_vector(z1+z2,2), "Complex numbers should be represented by 2D vectors." )
|
||||
assert( is_matrix([z1,z2],2,2), "Complex numbers should be represented by 2D vectors" )
|
||||
[ z1.x*z2.x - z1.y*z2.y, z1.x*z2.y + z1.y*z2.x ];
|
||||
|
||||
// Function: C_div()
|
||||
|
|
Loading…
Reference in a new issue