TrajectoryToLines.emam 457 Bytes
Newer Older
1
2
package ba.util;

3
component TrajectoryToLines{
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
    ports in Q^{3,5} trajectoryIn,
          //m-1 lineOuts
          out Q^{4,1} lineOut[4];

    implementation Math{
        for i = 1:4
            Q^{4,1} tmpLine;
            tmpLine(1,1) = trajectoryIn(1,i);
            tmpLine(2,1) = trajectoryIn(2,i);
            tmpLine(3,1) = trajectoryIn(1,i+1);
            tmpLine(4,1) = trajectoryIn(2,i+1);
            lineOut(i) = tmpLine;
        end
    }
}