![]() The simplest expression you could write would be something like To return a value the expressions engine looks for a term that evaluates to something. To set the value of a property with you need to write an expression that returns a value that matches the property. ![]() ![]() And because you can add points in expressions, and you can multiply and divide points by scalars (single values, like numbers), all you have to do is add the points and divide by 2.Īnd finally, you seem to have a misunderstanding of how expressions work. The average of any n terms is the sum of all the terms divided by n. To find the centre of two points what you need is the average of those two points. That's the first problem with the expression you're using.īut as it stands the expression is not going to give you the results you want. In expressions (and Javascript) you need to end each line with a semicolon.
0 Comments
Leave a Reply. |