scalar_value
A single numeric value — literal, named scalar, or an indexed component of another coordinate_list.
Kind: concept
You can use a scalar_value as an expression in the following ways:
-
Specifying the scalar name/value directly -- in this case, all values in the coordinate_list get this value. For example:
set foo 1.0 and set foo [1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0] ...or set foo h and set foo [h h h h h h h h]are equivalent.
-
You can specify a scalar as a sparse coordinate_list by using the following syntax:
scalar@x or scalar@0 scalar@y or scalar@1 scalar@w or scalar@2 scalar@h or scalar@3 scalar@ls or scalar@4 scalar@ts or scalar@5 scalar@rs or scalar@6 scalar@bs or scalar@7For example, the following are equivalent:
set foo 1.0@w and set foo [0 0 1.0 0] ...or set foo recarm@w and set foo [0 0 recarm 0] -
As a shorthand for making a sparse coordinate_list from one value of a coordinate_list, "coordlist{x}@x" can be abbreviated as "coordlist@x".