about summary refs log tree commit diff
path: root/converter/other/pamtosvg/point.h
blob: 0346f301708440603cebe48b1122b4c332bc663a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef POINT_H_INCLUDED
#define POINT_H_INCLUDED

#include <stdbool.h>

typedef struct {
  float x, y, z;
} Point;

Point
point_make(float const x,
           float const y,
           float const z);

bool
point_equal(Point const comparand,
            Point const comparator);

Point
point_sum(Point const coord1,
          Point const coord2);

Point
point_scaled(Point const coord,
             float const r);

float
point_distance(Point const p1,
               Point const p2);

#endif