Mercurial > projects > chipmunkd
comparison trunk/chipmunkd/cpShape.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 | d88862c82f06 |
comparison
equal
deleted
inserted
replaced
12:8697699b2c5a | 13:c03a41d47b60 |
---|---|
96 //// Cache the BBox of the shape. | 96 //// Cache the BBox of the shape. |
97 //cpBB cpShapeCacheBB(cpShape *shape); | 97 //cpBB cpShapeCacheBB(cpShape *shape); |
98 // | 98 // |
99 //// Test if a point lies within a shape. | 99 //// Test if a point lies within a shape. |
100 //cpBool cpShapePointQuery(cpShape *shape, cpVect p); | 100 //cpBool cpShapePointQuery(cpShape *shape, cpVect p); |
101 // | 101 |
102 //TODO | |
102 //#define CP_DeclareShapeGetter(struct, type, name) type struct##Get##name(cpShape *shape) | 103 //#define CP_DeclareShapeGetter(struct, type, name) type struct##Get##name(cpShape *shape) |
103 // | 104 // |
104 | 105 |
105 // Circle shape structure. | 106 // Circle shape structure. |
106 struct cpCircleShape{ | 107 struct cpCircleShape{ |
240 } | 241 } |
241 | 242 |
242 void | 243 void |
243 cpSegmentQueryInfoPrint(cpSegmentQueryInfo *info) | 244 cpSegmentQueryInfoPrint(cpSegmentQueryInfo *info) |
244 { | 245 { |
245 writefln("Segment Query:\n"); | 246 writefln("Segment Query:"); |
246 writefln("\tt: %s\n", info.t); | 247 writefln("\tt: %s", info.t); |
247 // writefln("\tdist: %f\n", info.dist); | 248 // writefln("\tdist: %f\n", info.dist); |
248 // writefln("\tpoint: %s\n", cpvstr(info.point)); | 249 // writefln("\tpoint: %s\n", cpvstr(info.point)); |
249 //writefln("\tn: %s\n", cpvstr(info.n)); //TODO: | 250 writefln("\tn: %s", cpvstr(info.n)); |
250 } | 251 } |
251 | 252 |
252 cpCircleShape * | 253 cpCircleShape * |
253 cpCircleShapeAlloc() | 254 cpCircleShapeAlloc() |
254 { | 255 { |