summaryrefslogtreecommitdiffstats
path: root/third_party/rust/uniffi-example-geometry/src/geometry.udl
blob: af60d429bfcb0fdf90c5be5a8d47258e49566c55 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
namespace geometry {
  double gradient(Line ln);
  Point? intersection(Line ln1, Line ln2);
};

dictionary Point {
  double coord_x;
  double coord_y;
};

dictionary Line {
  Point start;
  Point end;
};