summaryrefslogtreecommitdiff
path: root/src/plane.h
blob: f83350fa154bfbb2cf5da0c608c569c1073decff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include "defs.h"
#include "vertex.h"
#include "fixed.h"

#ifndef PLANE_H
#define PLANE_H

typedef struct PLANE {
    VERTEX normal;
    FIXED distance;
} PLANE;

static inline PLANE createPlane(VERTEX *normal, FIXED distance) {
    // Create a plane from data
    PLANE temp;
    temp.normal = *normal;
    temp.distance = distance;
    return temp;
}

#endif // PLANE_H