/simpletypesystem/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/simpletypesystem/trunk
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
#include "vec.h"

Vec3 *
vec3_new (sint a, sint b, sint c) {
  Vec3 * self = malloc (sizeof (Vec3));
  self->a = a;
  self->b = b;
  self->c = c;
  return self;
}

Vec3_16 *
vec3_16_new (sshort a, sshort b, sshort c) {
  Vec3_16 * self = malloc (sizeof (Vec3_16));
  self->a = a;
  self->b = b;
  self->c = c;
  return self;
}

Vec3_f *
vec3_f_new (sfloat a, sfloat b, sfloat c) {
  Vec3_f * self = malloc (sizeof (Vec3_f));
  self->a = a;
  self->b = b;
  self->c = c;
  return self;
}