- 博客(7)
- 资源 (1)
- 收藏
- 关注
原创 多变行的碰撞
bool SameSide( XPOINT a, XPOINT b, LINESEG l ){ __int64 dx = a.x - b.x; __int64 dy = a.y - b.y; __int64 dx0 = l.start.x - a.x; __int64 dy0 = l.start.y - a.y; __int64 dx1 = l.end.x - b.x;
2009-09-04 14:01:00 301
原创 多变行的碰撞
struct XPOINT{ int x; int y;};struct LINESEG { XPOINT start; XPOINT end;};struct XRECT { int left; int top; int right; int bottom;};#define PI (3.14159265358979
2009-09-04 14:00:00 300
原创 list
template class CList{ struct Node /*: public Object*/ { Type m_data; Node* m_pPrev; Node* m_pNext; Node(const Type& data = Type(), Node* p = 0, Node* n = 0) : m_data(data), m_
2009-09-04 13:43:00 228
原创 com组件类别管理对象枚举
ICatInformationPtr pICatInformation( CLSID_StdComponentCategoriesMgr ); IEnumCLSID* pIEnumCLSID = NULL; GUID CATID_CameraCategory = { 0x1f3a6849, 0xee55, 0x4d4c, { 0xb4, 0x62, 0x9a, 0x4, 0x50, 0xd
2009-08-06 09:55:00 547
原创 yuv422torgb
int table_y[240];int table_ub[256];int table_ug[256];int table_vg[256];int table_vr[256];void InitialTable(){ for (int i = 0; i < 240; ++i) { table_y[i] = 4767*i; table_y[i] =
2009-08-06 09:50:00 549 2
原创 定时器
#include #include #include inline std::string num2str(long i) { char buf[32]; sprintf(buf, "%d", i); return buf;}//////////////////////////////////////////////////////////////
2009-08-06 09:48:00 341
转载 计时类
#include #include namespace std { using ::clock_t; using ::clock; }////////////////////////////////////////////////////////////////////////// 计时类 (单位为秒, 精确到毫秒)/////////////////////////////////////
2009-08-06 09:43:00 291
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人