PointsToLine.emam 313 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package ba.util;
import ba.struct.Point;

component PointsToLine{
    ports in Point pointA,
          in Point pointB,
          out Q^{4,1} line;

    implementation Math{
        line(1,1) = pointA.posX;
        line(2,1) = pointA.posY;
        line(3,1) = pointB.posX;
        line(4,1) = pointB.posY;
    }
}