Sum of two vector elements cannot be used as number paramter
Posted: Sat Jun 09, 2018 9:00 am
Not sure if this is a bug or working as intended.
I cannot sum two elements from a vector and use them as a number parameter.
Example:
startshape START ( (1,2) )[]
shape START (vector2 v)
{
VECTORSUM ( ( v[0] + v[1] ) )[]
}
shape VECTORSUM (number n)
{
SQUARE[]
}
Results in:
Error - This expression does not satisfy the number parameter requirement
Am I trying to sum the elements properly or is there another way to do this?
I cannot sum two elements from a vector and use them as a number parameter.
Example:
startshape START ( (1,2) )[]
shape START (vector2 v)
{
VECTORSUM ( ( v[0] + v[1] ) )[]
}
shape VECTORSUM (number n)
{
SQUARE[]
}
Results in:
Error - This expression does not satisfy the number parameter requirement
Am I trying to sum the elements properly or is there another way to do this?