next up previous contents index
Next: Point Up: Fib elements Previous: Fib elements   Contents   Index


Vectors

Vectors consist of several elements, each element being either a value or a variable. The number of elements of the vector is either determined by the Fib element or an associated domain (see section 9.14.2 on page [*]).

All vector XML elements have the name vector. The vector element has the attribute type, which indicates the type of vector (Example: position or property.colorRGB). The vector element contains further for each element of the vector an XML element. The XML element for vector elements, which are values, has the name value. However, the XML element for vector elements, which are variables, has the name variable. Both XML elements for vector elements have the optional attribute number, which is the number (the counting starts at $1$) of the element in the vector. Furthermore, both contain the value of the vector element. Where for the variables the variable identifier / number is given, as it was defined in the definition of the variable.


An example for a vector:

<vector type="position">
   <value>17</value>
   <variable>3</variable>
</vector>

An example for a vector with the optional attribute number:

<vector type="position">
   <variable number="1">5</variable>
   <value number="2">3.9</value>
</vector>


next up previous contents index
Next: Point Up: Fib elements Previous: Fib elements   Contents   Index
Betti Österholz 2013-02-13