comparison trunk/chipmunkd/cpVect.d @ 13:c03a41d47b60

- finished all constraints properties - implemented cpAssertWarn the mixin way
author Extrawurst
date Fri, 03 Dec 2010 21:38:01 +0100
parents 7ebbd4d05553
children df4ebc8add66
comparison
equal deleted inserted replaced
12:8697699b2c5a 13:c03a41d47b60
42 cpvtoangle(const cpVect v) 42 cpvtoangle(const cpVect v)
43 { 43 {
44 return cpfatan2(v.y, v.x); 44 return cpfatan2(v.y, v.x);
45 } 45 }
46 46
47 //char* 47 import std.string:format;
48 //cpvstr(const cpVect v) 48
49 //{ 49 string
50 // static char str[256]; 50 cpvstr(const cpVect v)
51 // sprintf(str, "(% .3f, % .3f)", v.x, v.y); 51 {
52 // return str; 52 return .format("(%s,%s)",v.x, v.y);
53 //} 53 }