64,636
社区成员
发帖
与我相关
我的任务
分享
typedef unsigned char (*support_point_func)(const Shape& shape, const VectorF& n, VectorF& result);
unsigned char support_sphere (const Shape& shape, const VectorF& n, VectorF& result);
unsigned char support_box (const Shape& shape, const VectorF& n, VectorF& result);
unsigned char support_cylinder (const Shape& shape, const VectorF& n, VectorF& result);
unsigned char support_capsule (const Shape& shape, const VectorF& n, VectorF& result);
unsigned char support_convex_hull(const Shape& shape, const VectorF& n, VectorF& result);
unsigned char support_complex (const Shape& shape, const VectorF& n, VectorF& result);
class Shape
{
static support_point_func support_point_func_table[];
}
unsigned char support_sphere(const Shape& shape, const VectorF& n, VectorF& result)
{
}
unsigned char support_box(const Shape& shape, const VectorF& n, VectorF& result)
{
}
unsigned char support_cylinder(const Shape& shape, const VectorF& n, VectorF& result)
{
}
unsigned char support_capsule(const Shape& shape, const VectorF& n, VectorF& result)
{
}
unsigned char support_convex_hull(const Shape& shape, const VectorF& n, VectorF& result)
{
}
unsigned char support_complex(const Shape& shape, const VectorF& n, VectorF& result)
{
}
support_point_func Shape::support_point_func_table[] =
{
&support_sphere,
&support_box,
&support_cylinder,
&support_capsule,
&support_convex_hull,
&support_complex
};
class Shape;
struct VectorF;
typedef unsigned char (*support_point_func)(const Shape& shape, const VectorF& n, VectorF& result);
unsigned char support_sphere (const Shape& shape, const VectorF& n, VectorF& result);
unsigned char support_box (const Shape& shape, const VectorF& n, VectorF& result);
unsigned char support_cylinder (const Shape& shape, const VectorF& n, VectorF& result);
unsigned char support_capsule (const Shape& shape, const VectorF& n, VectorF& result);
unsigned char support_convex_hull(const Shape& shape, const VectorF& n, VectorF& result);
unsigned char support_complex (const Shape& shape, const VectorF& n, VectorF& result);
class Shape
{
static support_point_func support_point_func_table[];
};