]>
Commit | Line | Data |
---|---|---|
1 | namespace schultz { | |
2 | typedef float flop; | |
3 | template < typename T > | |
4 | inline typeof(((T) (*((T *) (0)))) * | |
5 | ((T) (*((T *) (0))))) square(const T & x) { | |
6 | } template < typename T > struct vector2 { | |
7 | inline | |
8 | typeof(((typeof | |
9 | (((T) (*((T *) (0)))) * | |
10 | ((T) (*((T *) (0)))))) (*((typeof | |
11 | (((T) (*((T *) (0)))) * | |
12 | ((T) (*((T *) (0))))) | |
13 | *) (0)))) + | |
14 | ((typeof | |
15 | (((T) (*((T *) (0)))) * | |
16 | ((T) (*((T *) (0)))))) (*((typeof | |
17 | (((T) (*((T *) (0)))) * | |
18 | ((T) (*((T *) (0))))) | |
19 | *) (0))))) | |
20 | operator *(const vector2 < T > &v) const { | |
21 | }}; | |
22 | struct circle { | |
23 | vector2 < flop > velocity; | |
24 | }; | |
25 | flop proj(const circle & C, vector2 < flop > P) { | |
26 | flop c = square(C.velocity); | |
27 | } | |
28 | } |