本文整理汇总了C++中Gesture::getMaxacc方法的典型用法代码示例。如果您正苦于以下问题:C++ Gesture::getMaxacc方法的具体用法?C++ Gesture::getMaxacc怎么用?C++ Gesture::getMaxacc使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Gesture
的用法示例。
在下文中一共展示了Gesture::getMaxacc方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: sin
void Quantizer2::init(Gesture gesture){
radius = (gesture.getMaxacc() + gesture.getMinacc()) / 2;
double pi = M_PI;
// inizializza i centroidi
centroids[0] = Sample_3d(radius, 0, 0);
centroids[1] = Sample_3d(cos(pi/4)*radius, 0, sin(pi/4)*radius);
centroids[2] = Sample_3d(0, 0, radius);
centroids[3] = Sample_3d(cos(pi*3/4)*radius, 0, sin(pi*3/4)*radius);
centroids[4] = Sample_3d(-radius, 0, 0);
centroids[5] = Sample_3d(cos(pi*5/4)*radius, 0, sin(pi*5/4)*radius);
centroids[6] = Sample_3d(0, 0, -radius);
centroids[7] = Sample_3d(cos(pi*7/4)*radius, 0, sin(pi*7/4)*radius);
centroids[8] = Sample_3d(0, radius, 0);
centroids[9] = Sample_3d(0, cos(pi/4)*radius, sin(pi/4)*radius);
centroids[10] = Sample_3d(0, cos(pi*3/4)*radius, sin(pi*3/4)*radius);
centroids[11] = Sample_3d(0, -radius, 0);
centroids[12] = Sample_3d(0, cos(pi*5/4)*radius, sin(pi*5/4)*radius);
centroids[13] = Sample_3d(0, cos(pi*7/4)*radius, sin(pi*7/4)*radius);
}