gmqcc/tests/vec_ops.qc

13 lines
315 B
C++
Raw Normal View History

2013-01-13 19:49:27 +00:00
void main(vector v) {
print(vtos(v), "\n");
v /= 2;
print(vtos(v), "\n");
print(vtos(v / 2), "\n");
print(vtos(v), "\n");
print(vtos(v | 16), "\n");
print(vtos(v & 16), "\n");
print(vtos(v | '25 42 51'), "\n");
print(vtos(v & '25 42 51'), "\n");
print(vtos(v >< '3 2 1'));
2013-01-13 19:49:27 +00:00
}